Skip to content

Reddit - Can't download videos #200

@musjj

Description

@musjj

The Reddit downloader currently can't handle videos.

For example: https://www.reddit.com/r/FunnyAnimals/comments/1rm434p/_

That URL will fail with this error:

Exception('The downloader thought it had a raw file url with "https://v.redd.it/g50q241fqcng1", but that redirected to the apparent Post URL "https://www.reddit.com/r/FunnyAnimals/comments/1rm434p/_/". As that URL has the same class as this import job\'s original URL, we are stopping here in case this is a looping redirect!')… (Copy note to see full error)
Traceback (most recent call last):
  File "/nix/store/ipzd10hx3xjihk9j66s3l84y521l04ks-hydrus-661/lib/python3.13/site-packages/hydrus/client/importing/ClientImportFileSeeds.py", line 1650, in WorkOnURL
    self.DownloadAndImportRawFile( file_url, file_import_options, loud_or_quiet, network_job_factory, network_job_presentation_context_factory, status_hook, override_bandwidth = override_bandwidth, spawning_url = url_to_fetch, forced_referral_url = url_for_child_referral, file_seed_cache = file_seed_cache )
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/ipzd10hx3xjihk9j66s3l84y521l04ks-hydrus-661/lib/python3.13/site-packages/hydrus/client/importing/ClientImportFileSeeds.py", line 826, in DownloadAndImportRawFile
    raise Exception( 'The downloader thought it had a raw file url with "{}", but that redirected to the apparent Post URL "{}". As that URL has the same class as this import job\'s original URL, we are stopping here in case this is a looping redirect!'.format( file_url, actual_fetched_url ) )
Exception: The downloader thought it had a raw file url with "https://v.redd.it/g50q241fqcng1", but that redirected to the apparent Post URL "https://www.reddit.com/r/FunnyAnimals/comments/1rm434p/_/". As that URL has the same class as this import job's original URL, we are stopping here in case this is a looping redirect!

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