mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Fixed a bug that was preventing releases from being populated properly.
This commit is contained in:
parent
58c27e91fa
commit
053959811a
1 changed files with 5 additions and 3 deletions
|
@ -78,8 +78,9 @@ class autoProcessMovie:
|
||||||
|
|
||||||
for movie in movies:
|
for movie in movies:
|
||||||
for release in movie['releases']:
|
for release in movie['releases']:
|
||||||
if download_id and download_id != release['download_info']['id']:
|
if download_id and hasattr(release, 'download_info'):
|
||||||
continue
|
if download_id != release['download_info']['id']:
|
||||||
|
continue
|
||||||
|
|
||||||
releases[release['_id']] = release
|
releases[release['_id']] = release
|
||||||
except:pass
|
except:pass
|
||||||
|
@ -158,7 +159,8 @@ class autoProcessMovie:
|
||||||
if len(releases) == 1:
|
if len(releases) == 1:
|
||||||
release_id = releases.keys()[0]
|
release_id = releases.keys()[0]
|
||||||
media_id = releases[release_id]['media_id']
|
media_id = releases[release_id]['media_id']
|
||||||
download_id = releases['download_info']['id']
|
if hasattr(releases, 'download_info'):
|
||||||
|
download_id = releases['download_info']['id']
|
||||||
|
|
||||||
process_all_exceptions(nzbName.lower(), dirName)
|
process_all_exceptions(nzbName.lower(), dirName)
|
||||||
nzbName, dirName = convert_to_ascii(nzbName, dirName)
|
nzbName, dirName = convert_to_ascii(nzbName, dirName)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue