Skip to content

[BUG] YouTubeDownloadRequest returns -'.: Cannot read property 'call' of undefined #201

Description

@DaniNotFound702

Tubifarry Version

v2.1.0.0

Lidarr Version

v3.1.2.4913

Operating System

Docker

Bug Description

When i download a song from Youtube with tubifarry i get the error that you can see in image 1.

Image

Steps to Reproduce

Step 1: Select a song from the youtube indexer (image 1)
Step 2: Looks in Lidarr > System > events and see error (image

Image Image

Settings:
Image

Image Image

Expected Behavior

I expect that the song download without a error

Trace Log Files

Logs
026-06-19 23:04:02.4|Trace|Http|Res: 24199 [GET] /api/v1/album?artistId=300: 200.OK (130 ms)
2026-06-19 23:04:02.4|Debug|Api|[GET] /api/v1/album?artistId=300: 200.OK (130 ms)
2026-06-19 23:04:02.4|Trace|Http|Req: 24208 [GET] /api/v1/trackfile?artistId=300 (from ::1 python-requests/2.32.5)
2026-06-19 23:04:02.4|Error|YouTubeDownloadRequest|Failed to process track 'Thank You (feat. Jonsal Barrientes & Tiffany Hudson)' in album 'SO BE IT'
2026-06-19 23:04:02.4|Error|YouTubeDownloadRequest|Failed to process track 'Thank You (feat. Jonsal Barrientes & Tiffany Hudson)' in album 'SO BE IT'.

[v3.1.2.4913] Jint.Runtime.JavaScriptException: Cannot read property 'call' of undefined
 ---> Error: Cannot read property 'call' of undefined
    at g.iz (:11:31)
    at ZF (:15:66)
    at sigFunction (:22:20)
    at <anonymous>:1:1
   --- End of inner exception stack trace ---
   at Jint.Engine.ScriptEvaluation(ScriptRecord scriptRecord, ParserOptions parserOptions)
   at Jint.Engine.ExecuteWithConstraints[T](Boolean strict, Func`1 callback)
   at Jint.Engine.Execute(Prepared`1& preparedScript)
   at YouTubeMusicAPI.Internal.Player.Decipher(String url, String signatureCipher, String cipher, String poToken)
   at YouTubeMusicAPI.Internal.Selectors.SelectStreamInfo(JToken value, Func`2 getUrl)
   at YouTubeMusicAPI.Internal.Parsers.StreamingParser.GetData(JObject jsonToken, Player player, String poToken)
   at YouTubeMusicAPI.Client.YouTubeMusicClient.GetStreamingDataAsync(String id, CancellationToken cancellationToken)
   at Tubifarry.Download.Clients.YouTube.YouTubeDownloadRequest.ProcessAlbumAsync(String downloadUrl, CancellationToken token)


2026-06-19 23:04:02.4|Trace|YouTubeDownloadRequest|Updating client with video-bound tokens for: E5Ka4dd0MCc
2026-06-19 23:04:02.4|Trace|TrustedSessionHelper|Generating video-bound token for E5Ka4dd0MCc using bgutil service
2026-06-19 23:04:02.4|Trace|TrustedSessionHelper|Fetching token from bgutil service: http://127.0.0.1:4416/get_pot for video E5Ka4dd0MCc
2026-06-19 23:04:02.4|Trace|TrustedSessionHelper|Received response: {"contentBinding":"E5Ka4dd0MCc","poToken":"MltdexFHpE6oLF0_4FOYsORKpUgXjK3m2AfmiN863SE0So7q0i_9hCDpg0WK3kYSuff9WIVvUEJzhgUfUUAd4LhizWNG-W-iITt9q4j_geNZbZD94Ws7prqn6BKy","expiresAt":"2026-06-20T03:04:02.432Z"}
2026-06-19 23:04:02.4|Trace|TrustedSessionHelper|Successfully fetched tokens from bgutil (Video-Bound). Expiry: 6/20/2026 3:04:02 AM
2026-06-19 23:04:02.4|Trace|TrustedSessionHelper|Updated client with video-bound tokens for E5Ka4dd0MCc

Log Checklist

  • I have enabled Trace logging in Lidarr before reproducing the issue

Screenshots

Screenshots

Additional Context

Lidarr runs in docker behind glueton vpn

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexternalPending External Dependencies

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions