* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once './config/config.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
# set to true if you need debug messages in error log file
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
-; along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+; along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
;
; Format: key = "value", which is the default ini format
; Special logic is added to make key = key work. Use it to provide a unique key but with a already existing value.
tool.imdb.posters = "Film Poster"
tool.imdb.save = reuse.global.save
tool.imdb.search = reuse.global.search
-tool.imdb.search.hint = "Suche funktioniert mit der IMDB Film ID am Besten. Auf IMDB manuell suchen und davon die ID nehmen."
+tool.imdb.search.hint = "Suche funktioniert mit der IMDB Film ID. Auf IMDB manuell suchen und davon die ID (tt*) aus der URL nehmen."
tool.imdb.select.none = reuse.global.none
tool.limitations = "Einschränkungen"
-tool.limitations.override = "Daten werden überschrieben"
+tool.limitations.override = "Daten werden überschrieben."
tool.message.missingFiles = "Benötige Tooldateien können nicht gefunden werden."
tool.music.input.albumTitle = "Album/Titel"
tool.music.input.artist = "Künstler"
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
-; along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+; along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
;
; Format: key = "value", which is the default ini format
; Special logic is added to make key = key work. Use it to provide a unique key but with a already existing value.
tool.imdb.posters = "Movie posters"
tool.imdb.save = reuse.global.save
tool.imdb.search = reuse.global.search
-tool.imdb.search.hint = "Seach works best if you use the imdb movie ID after searching manually on imdb itself."
+tool.imdb.search.hint = "Seach works with the imdb movie ID (the tt* in the url) after searching manually on imdb itself."
tool.imdb.select.none = reuse.global.none
tool.limitations = "Limitations"
tool.limitations.override = "Data will be overwritten"
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once './config/config.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
class Manageentry {
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
## optional context action
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
if(isset($TemplateData['message']['content'])) {
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/trite.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
// passwords used here: password_hash("somePassword", PASSWORD_DEFAULT);
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/trite.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/mancubus.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/mancubus.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/mancubus.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/managecollections.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/trite.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/possessed.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/trite.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/possessed.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/possessed.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
$TemplateData['bibVersion'] = BIB_VERSION;
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
## optional context action
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
if(isset($TemplateData['message']['content'])) {
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/mancubus.class.php';
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
<p><b><?php echo $I18n->t('tool.limitations'); ?></b></p>
<p><?php echo $I18n->t('tool.limitations.override'); ?></p>
<p>
- <?php echo $I18n->t('tool.imdb.posters'); ?> <a href="http://www.impawards.com/" target=_blank>impawards</a><br />
<?php echo $I18n->t('tool.imdb.search.hint'); ?>
+
+</p>
+<p>
+ <?php echo $I18n->t('tool.imdb.posters'); ?> <a href="http://www.impawards.com/" target=_blank>impawards</a
</p>
<form class="uk-form-horizontal uk-margin-small" method="post" enctype="multipart/form-data">
<label class="uk-form-label" for="search"><?php echo $I18n->t('tool.imdb.search'); ?></label>
<div class="uk-form-controls">
<input class="uk-input" id="search" type="text" autocomplete="off"
+ placeholder="tt123456790"
name="fdata[search]"
value="<?php echo $TemplateData['editEntry']['title'] ?? ''; ?>"
>
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* Requirements and more information come from the main tool.php file
*/
+/*
require_once 'lib/imdbwebparser.class.php';
if(file_exists(PATH_ABSOLUTE.'/config/config-imdbweb.php')) {
require_once 'config/config-imdbweb.php';
'browserAccept' => TOOL_IMDBWEB_BROWSER_ACCEPT,
'debug' => false
));
+*/
+
+require_once 'lib/imdbweb.class.php';
+if(file_exists(PATH_ABSOLUTE.'/config/config-imdbweb.php')) {
+ require_once 'config/config-imdbweb.php';
+}
+$IMDB = new IMDBWEB(array(
+ 'storage' => TOOL_IMDBWEB_CACHE_STORAGE,
+ 'browserAgent' => TOOL_IMDBWEB_BROWSER_AGENT,
+ 'browserLang' => TOOL_IMDBWEB_BROWSER_ACCEPT_LANG,
+ 'browserAccept' => TOOL_IMDBWEB_BROWSER_ACCEPT,
+ 'attributes' => TOOL_IMDBWEB_ATTRIBUTES,
+ 'debug' => DEBUG
+));
$TemplateData['movieData'] = array();
$search = Summoner::validate($search) ? $search : false;
if(!empty($search)) {
- try {
- $IMDB->search($search);
- }
- catch (Exception $e) {
- if(DEBUG) Summoner::sysLog("[DEBUG] imdb search catch: ".$e->getMessage());
- }
+ $mData = $IMDB->search($search);
+ var_dump($mData);
- if ($IMDB->isReady) {
- $TemplateData['movieData'] = $IMDB->getAll();
- $TemplateData['movieImdbId'] = "tt".$IMDB->iId; // this is the IMDB id you can search for
+ if (!empty($mData)) {
+ $TemplateData['movieData'] = $mData;
+ $TemplateData['movieImdbId'] = "tt"; // this is the IMDB id you can search for
$TemplateData['showMatchingForm'] = true;
} else {
$TemplateData['message']['content'] = $I18n->t('global.message.nothingFound');
if(!empty($_imdbId)) {
try {
- $IMDB->search($_imdbId); // cache used
+ $IMDB->search($_imdbId);
}
catch (Exception $e) {
if(DEBUG) Summoner::sysLog("[DEBUG] imdb search catch: ".$e->getMessage());
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
/**
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.
+ * along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0
*/
require_once 'lib/tentacle.class.php';