meeb / tubesync

Syncs YouTube channels and playlists to a locally hosted media server
GNU Affero General Public License v3.0
1.87k stars 119 forks source link

Youtube-dl Error #411

Closed Bykow closed 12 months ago

Bykow commented 12 months ago

I have this error on my instance of tubesync.

It's deployed in a k8s cluster, using:

    image:
      repository: ghcr.io/meeb/tubesync
      tag: v0.12.0
│ 2023-09-22 14:33:30,909 [tubesync/DEBUG] [youtube] Extracting URL: https://www.youtube.com/watch?v=oQ6-InlWV1w                                                                                                                                                                                                            │
│ 2023-09-22 14:33:30,909 [tubesync/DEBUG] [youtube] oQ6-InlWV1w: Downloading webpage                                                                                                                                                                                                                                       │
│ 2023-09-22 14:33:31,065 [tubesync/WARNING] [youtube] unable to extract initial player response; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U                                              │
│ 2023-09-22 14:33:31,066 [tubesync/DEBUG] [youtube] oQ6-InlWV1w: Downloading android player API JSON                                                                                                                                                                                                                       │
│ 2023-09-22 14:33:31,306 [tubesync/DEBUG] [youtube] oQ6-InlWV1w: Downloading iframe API JS                                                                                                                                                                                                                                 │
│ 2023-09-22 14:33:31,362 [tubesync/DEBUG] [youtube] oQ6-InlWV1w: Downloading player f130aa11                                                                                                                                                                                                                               │
│ 2023-09-22 14:33:31,441 [tubesync/DEBUG] [youtube] oQ6-InlWV1w: Downloading web player API JSON                                                                                                                                                                                                                           │
│ 2023-09-22 14:33:31,577 [tubesync/ERROR] ERROR: [youtube] oQ6-InlWV1w: Unable to extract uploader id; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U                                        │
│ Rescheduling Downloading metadata for "ee193880-d242-48fa-8e74-063c8ccc9c15"                                                                                                                                                                                                                                              │
│ Traceback (most recent call last):                                                                                                                                                                                                                                                                                        │
│   File "/usr/local/lib/python3.9/dist-packages/background_task/tasks.py", line 43, in bg_runner                                                                                                                                                                                                                           │
│     func(*args, **kwargs)                                                                                                                                                                                                                                                                                                 │
│   File "/app/sync/tasks.py", line 227, in download_media_metadata                                                                                                                                                                                                                                                         │
│     metadata = media.index_metadata()                                                                                                                                                                                                                                                                                     │
│   File "/app/sync/models.py", line 1275, in index_metadata                                                                                                                                                                                                                                                                │
│     return indexer(self.url)                                                                                                                                                                                                                                                                                              │
│   File "/app/sync/youtube.py", line 60, in get_media_info                                                                                                                                                                                                                                                                 │
│     raise YouTubeError(f'Failed to extract_info for "{url}": No metadata was '                                                                                                                                                                                                                                            │
│ sync.youtube.YouTubeError: Failed to extract_info for "https://www.youtube.com/watch?v=oQ6-InlWV1w": No metadata was returned by youtube-dl, check for error messages in the logs above. This task will be retried later with an exponential backoff.                                                                     │
│ Rescheduling task Downloading metadata for "ee193880-d242-48fa-8e74-063c8ccc9c15" for 0:00:06 later at 2023-09-22 12:33:37.587075+00:00                                                                                                                                                                                   │
meeb commented 12 months ago

You'll need to use :latest to get an up to date version of yt-dlp.

Bykow commented 12 months ago

Hum, this is not idea in my setup (I live to have versions, so I can have renovate pick up updates for me)

Any chances this fix gets a release soonish ?

Edit: when you meant latest did you mean tagging as latest, or using 0.12.1 (just realised I'm not on latest release)

meeb commented 12 months ago

The issue really is TubeSync is really just a wrapper on yt-dlp which has dated releases. Having to make a full, versioned, TubeSync release each time there's an yt-dlp release is a pain. This is automatically updated in :latest though for now. And you want actually :latest.

Edit: you're welcome to just pull :latest and push to registry.your-local-repo.com/tubesync:2023-09-23 or something on a 24 hour timer if that produces images with tags to your deployment liking?

IIIdefconIII commented 10 months ago

Hi, im started to use this container as of today with: But im also getting the error: This task will be retried later with an exponential backoff

# Tubesync: Sync youtube videos_________
  Tubesync:
    container_name: tubesync
    image: ghcr.io/meeb/tubesync:latest
    restart: always
    mem_limit: 6g
    cpu_shares: 768 
    security_opt:
      - no-new-privileges:false
    ports:
      - 4848:4848
    volumes:
      - $DOCKERDIR/tubesync:/config:rw
      - $LIBRARYDIR:/downloads/tubesync:rw
    environment:
      PUID: $PUID
      PGID: $PGID
      UMASK: $UMASK
      TZ: $TZ
      HTTP_USER: sysadmin
      HTTP_PASS: $TUBESYNCPWT    
IIIdefconIII commented 10 months ago

as the ticket is closed, can a solution be post? TY

meeb commented 10 months ago

This issue was caused by using an out of date image, fixed by switching to :latest or the most recent versioned release.

IIIdefconIII commented 10 months ago

I am on latest already

Met vriendelijke groet,


Thomas van Dalen

E: @.**@.>

T: +316 30 929 009


From: meeb @.> Sent: Thursday, November 16, 2023 4:49:00 PM To: meeb/tubesync @.> Cc: Thomas van Dalen @.>; Comment @.> Subject: Re: [meeb/tubesync] Youtube-dl Error (Issue #411)

This issue was using an out of date image, fixed by switching to :latest or the most recent versioned release.

— Reply to this email directly, view it on GitHubhttps://github.com/meeb/tubesync/issues/411#issuecomment-1814727903, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACLVJWYY52GKLATR7FKZGUTYEYYWZAVCNFSM6AAAAAA5DBESL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUG4ZDOOJQGM. You are receiving this because you commented.Message ID: @.***>