Change type to protocol in release and renamer
This commit is contained in:
1 parent
7eb1d72333
commit
c13c0f24e5
2 files changed
+3
-3
No files matched your search
@@ -174,7 +174,7 @@ class Release(Plugin):
|
|||||||
# Get matching provider
|
# Get matching provider
|
||||||
provider = fireEvent('provider.belongs_to', item['url'], provider = item.get('provider'), single = True)
|
provider = fireEvent('provider.belongs_to', item['url'], provider = item.get('provider'), single = True)
|
||||||
|
|
||||||
if item['type'] != 'torrent_magnet':
|
if item['protocol'] != 'torrent_magnet':
|
||||||
item['download'] = provider.loginDownload if provider.urls.get('login') else provider.download
|
item['download'] = provider.loginDownload if provider.urls.get('login') else provider.download
|
||||||
|
|
||||||
success = fireEvent('searcher.download', data = item, movie = rel.movie.to_dict({
|
success = fireEvent('searcher.download', data = item, movie = rel.movie.to_dict({
|
||||||
|
|||||||
@@ -827,13 +827,13 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
download_info.update({
|
download_info.update({
|
||||||
'imdb_id': rls.movie.library.identifier,
|
'imdb_id': rls.movie.library.identifier,
|
||||||
'quality': rls.quality.identifier,
|
'quality': rls.quality.identifier,
|
||||||
'type': rls_dict.get('info', {}).get('type')
|
'protocol': rls_dict.get('info', {}).get('protocol')
|
||||||
})
|
})
|
||||||
|
|
||||||
return download_info
|
return download_info
|
||||||
|
|
||||||
def downloadIsTorrent(self, download_info):
|
def downloadIsTorrent(self, download_info):
|
||||||
return download_info and download_info.get('type') in ['torrent', 'torrent_magnet']
|
return download_info and download_info.get('protocol') in ['torrent', 'torrent_magnet']
|
||||||
|
|
||||||
def fileIsAdded(self, src, group):
|
def fileIsAdded(self, src, group):
|
||||||
if not group or not group.get('before_rename'):
|
if not group or not group.get('before_rename'):
|
||||||
|
|||||||
Reference in new issue
Block a user