Skip to content

prioritize downloding zürich tatort from SRF #4

@stheid

Description

@stheid

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions