mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update getMovieCovers and updateTvrRage scripts, fix opening of wrong links when viewing details and switching to movies, series etc view.
This commit is contained in:
@@ -6,7 +6,7 @@ use newznab\db\Settings;
|
||||
|
||||
$pdo = new Settings();
|
||||
|
||||
$movie = new \Film(array('Echo' => true, 'Settings' => $pdo));
|
||||
$movie = new Film(['Echo' => true, 'Settings' => $pdo]);
|
||||
|
||||
$movies = $pdo->queryDirect("SELECT imdbid FROM movieinfo WHERE cover = 0 ORDER BY year ASC, id DESC");
|
||||
if ($movies instanceof \Traversable) {
|
||||
@@ -23,4 +23,4 @@ if ($movies instanceof \Traversable) {
|
||||
}
|
||||
}
|
||||
echo "\n";
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ use newznab\utility\Utility;
|
||||
|
||||
|
||||
$pdo = new Settings();
|
||||
$tvrage = new \TvAnger(['Settings' => $pdo, 'Echo' => true]);
|
||||
$tvrage = new TvAnger(['Settings' => $pdo, 'Echo' => true]);
|
||||
|
||||
$shows = $pdo->queryDirect("SELECT rageid FROM tvrage WHERE imgdata IS NULL ORDER BY rageid DESC LIMIT 2000");
|
||||
if ($shows->rowCount() > 0) {
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
{/if}
|
||||
{/if}
|
||||
{if $anidb && $release.anidbid > 0}
|
||||
<a class="label label-default" href="{$smarty.const.WWW_TOP}anime/{$release.anidbid}"
|
||||
<a class="label label-default" href="{$serverroot}anime/{$release.anidbid}"
|
||||
title="View all releases from this anime">View all episodes</a>
|
||||
<a class="label label-default"
|
||||
href="{$site->dereferrer_link}http://anidb.net/perl-bin/animedb.pl?show=anime&aid={$anidb.anidbid}"
|
||||
@@ -46,7 +46,7 @@
|
||||
{if $rage && $release.rageid > 0}
|
||||
<a href="{$smarty.const.WWW_TOP}/myshows/add/{$release.rageid}?from={$smarty.server.REQUEST_URI|escape:"url"}"
|
||||
class="label label-success">Add to My Shows</a>
|
||||
<a class="label label-default" href="{$smarty.const.WWW_TOP}series/{$release.rageid}"
|
||||
<a class="label label-default" href="{$serverroot}series/{$release.rageid}"
|
||||
title="View all releases for this series">View all episodes</a>
|
||||
<a class="label label-default" target="_blank"
|
||||
href="{$site->dereferrer_link}http://www.tvrage.com/shows/id-{$release.rageid}"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
title="Delete release">Delete</a>
|
||||
{/if}
|
||||
{if $movie && $release.rageid < 0}
|
||||
<a class="label label-default" href="{$smarty.const.WWW_TOP}movies?imdb={$release.imdbid}"
|
||||
<a class="label label-default" href="{$serverroot}movies?imdb={$release.imdbid}"
|
||||
title="View all releases for this movie">Movie View</a>
|
||||
<a class="label label-default" target="_blank"
|
||||
href="{$site->dereferrer_link}http://www.imdb.com/title/tt{$release.imdbid}/"
|
||||
@@ -34,7 +34,7 @@
|
||||
{/if}
|
||||
{/if}
|
||||
{if $anidb && $release.anidbid > 0}
|
||||
<a class="label label-default" href="{$smarty.const.WWW_TOP}anime/{$release.anidbid}"
|
||||
<a class="label label-default" href="{$serverroot}anime/{$release.anidbid}"
|
||||
title="View all releases from this anime">View all episodes</a>
|
||||
<a class="label label-default"
|
||||
href="{$site->dereferrer_link}http://anidb.net/perl-bin/animedb.pl?show=anime&aid={$anidb.anidbid}"
|
||||
@@ -46,7 +46,7 @@
|
||||
{if $rage && $release.rageid > 0}
|
||||
<a href="{$smarty.const.WWW_TOP}/myshows/add/{$release.rageid}?from={$smarty.server.REQUEST_URI|escape:"url"}"
|
||||
class="label label-success">Add to My Shows</a>
|
||||
<a class="label label-default" href="{$smarty.const.WWW_TOP}series/{$release.rageid}"
|
||||
<a class="label label-default" href="{$serverroor}series/{$release.rageid}"
|
||||
title="View all releases for this series">View all episodes</a>
|
||||
<a class="label label-default" target="_blank"
|
||||
href="{$site->dereferrer_link}http://www.tvrage.com/shows/id-{$release.rageid}"
|
||||
|
||||
Reference in New Issue
Block a user