mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Remove padding of imdbid as column is now varchar and stores imdbid properly
This commit is contained in:
@@ -17,9 +17,9 @@ if ($count > 0) {
|
||||
$colorCli->primary('Updating '.number_format($count).' movies for TraktTV id.');
|
||||
foreach ($movies as $mov) {
|
||||
$traktTv = new TraktTv(['Settings' => null]);
|
||||
$traktmovie = $traktTv->client->movieSummary('tt'.str_pad($mov['imdbid'], 7, '0', STR_PAD_LEFT), 'full');
|
||||
$traktmovie = $traktTv->client->movieSummary('tt'.$mov['imdbid'], 'full');
|
||||
if ($traktmovie !== false) {
|
||||
$colorCli->info('Updating IMDb id: tt'.str_pad($mov['imdbid'], 7, '0', STR_PAD_LEFT));
|
||||
$colorCli->info('Updating IMDb id: tt'.$mov['imdbid']);
|
||||
$trakt = $movie->parseTraktTv($traktmovie);
|
||||
if ($trakt === true) {
|
||||
$colorCli->info('Added traktid: '.$traktmovie['ids']['trakt']);
|
||||
|
||||
Reference in New Issue
Block a user