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

prioritize downloding zürich tatort from SRF #4

Open
stheid opened this issue Mar 28, 2022 · 0 comments
Open

prioritize downloding zürich tatort from SRF #4

stheid opened this issue Mar 28, 2022 · 0 comments

Comments

@stheid
Copy link
Owner

stheid commented Mar 28, 2022

basically, in line 44 we should no longer only look at the size, but implement a more complex comparable function. Maybe the mediathekwrapper should no longer be a pandas array, but a list of objects that implement le magic function. than they could be compared.
Currently the tatorts from zürich are "playlist downloads" meaning its not possible to determine the download filesize beforehand. therefore they will not be considered larger than the version from ARD.

tid = ids[0]
new_size = model.get_size_if_missing_or_smaller(tid, tatort.url)
if new_size is not None and new_size > processed.get(tid, 0):
processed[tid] = new_size
downloads[tid] = (tatort, model.filename(tid))

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

1 participant