Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem after downloading video #18

Open
piegus96 opened this issue Sep 22, 2019 · 4 comments
Open

Problem after downloading video #18

piegus96 opened this issue Sep 22, 2019 · 4 comments

Comments

@piegus96
Copy link

Hi i have python 2.7 and after run script i have this error:

[download] Downloading video 377 of 382
[download] Downloading video 378 of 382
[download] Downloading video 379 of 382
[download] Downloading video 380 of 382
[download] Downloading video 381 of 382
[download] Downloading video 382 of 382
[download] Finished downloading playlist: HOT New Trailers & Movieclips Exclusives
2019-09-22 11:00:44,930 - INFO - querying the movie db for Alita Battle Angel
2019-09-22 11:00:45,180 - ERROR - ValueError for Alita Battle Angel invalid literal for int() with base 10: '' 119
2019-09-22 11:00:45,181 - INFO - Creating Cache
2019-09-22 11:00:45,632 - INFO - querying the movie db for Fantastic Beasts The Crimes of Grindelwald
2019-09-22 11:00:45,884 - INFO - Creating New Entry
2019-09-22 11:00:46,365 - INFO - querying the movie db for Avengers Infinity War
2019-09-22 11:00:46,615 - INFO - Creating New Entry
2019-09-22 11:00:47,118 - INFO - querying the movie db for Deadpool 2
Traceback (most recent call last):
File "C:\Users\Adam\Desktop\TheaterTrailers\theaterTrailers.py", line 464, in
main()
File "C:\Users\Adam\Desktop\TheaterTrailers\theaterTrailers.py", line 112, in main
releaseDate = s['release_date']
KeyError: u'release_date'

@henriquelbsouza
Copy link

Exact same error here, anyone able to fix that?

@henriquelbsouza
Copy link

I "fixed" it by "ignoring" the document when it doesn't have the release_date...

On line 112 I replaced the

s['release_date']
with
s.get('release_date', '1900-01-01')

the code is running... not sure what is the impact of that, maybe I loose all trailers at the end of the run :P

I may do a better job on that later, I don't have the proper time right now...

@Electronickss if you can give us some insight :)

@henriquelbsouza
Copy link

henriquelbsouza commented Dec 4, 2019

It download, the trailer files are there BUT plex doesn't seem to find it, or it just doesn't index it :(

Anyone has any idea? :)

Edit: Made it work by adding the Trailers folder to the local media assets and in the library itself...

@TristBella
Copy link

replace what is in your file with this
theaterTrailers.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants