1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-23 16:28:49 -05:00

Set condition for tntvillage parameters

added $curTorrentProvider.getID() == 'tntvillage'
added some string for quality recognition in case all category is set
This commit is contained in:
Giovanni 2015-02-17 16:02:07 +01:00
parent 61e201d201
commit d87d35237d
2 changed files with 5 additions and 5 deletions

View File

@ -530,7 +530,7 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
</div>
#end if
#if $hasattr($curTorrentProvider, 'page'):
#if $hasattr($curTorrentProvider, 'page') and $curTorrentProvider.getID() == 'tntvillage':
<div class="field-pair">
<label for="${curTorrentProvider.getID()}_page">
<span class="component-title">Page Number:</span>
@ -542,7 +542,7 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
</div>
#end if
#if $hasattr($curTorrentProvider, 'cat'):
#if $hasattr($curTorrentProvider, 'cat') and $curTorrentProvider.getID() == 'tntvillage':
<div class="field-pair">
<label for="${curTorrentProvider.getID()}_cat">
<span class="component-title">Category:</span>
@ -557,7 +557,7 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
</div>
#end if
#if $hasattr($curTorrentProvider, 'subtitle'):
#if $hasattr($curTorrentProvider, 'subtitle') and $curTorrentProvider.getID() == 'tntvillage':
<div class="field-pair">
<label for="${curTorrentProvider.getID()}_subtitle">
<span class="component-title">Subtitled</span>

View File

@ -276,8 +276,8 @@ class TNTVillageProvider(generic.TorrentProvider):
checkName = lambda list, func: func([re.search(x, file_quality, re.I) for x in list])
dvdOptions = checkName(["dvd", "dvdrip", "dvdmux", "DVD9", "DVD5"], any)
blueRayOptions = checkName(["BD","BDmux", "BDrip", "Bluray"], any)
sdOptions = checkName(["h264", "divx", "XviD", "tv", "SATRip"], any)
blueRayOptions = checkName(["BD","BDmux", "BDrip", "BRrip", "Bluray"], any)
sdOptions = checkName(["h264", "divx", "XviD", "tv", "TVrip", "SATRip", "DTTrip", "Mpeg2"], any)
hdOptions = checkName(["720p"], any)
fullHD = checkName(["1080p", "fullHD"], any)