[Bug]: (Downloader) YouTube Premium check fails if account menu is not opened at least once #2985

Closed
opened 2025-02-16 09:38:03 +00:00 by franz-dc · 0 comments
franz-dc commented 2025-02-16 09:38:03 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

master

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 10 23H2

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

Download a song without opening the account menu for the current session.

Expected Behavior

Song should be downloaded.

Actual Behavior

Download fails with a 403 error due to isYouTubePremium returning an incorrect value (with type: 'audio' being not available for non-Premium users).

Enabled plugins

  1. Ad Blocker
  2. Album Color Theme
  3. API Server
  4. Captions Selector
  5. Discord Rich Presence
  6. Navigation
  7. Precise Volume
  8. Synced Lyrics
  9. Taskbar Media Control
  10. Video Quality Changer
  11. Video Toggle

Additional Information

Copying from src/plugins/downloader/main/index.ts#L58-L61

Prior to opening the account menu (Premium status not detected properly):
Image

Account menu opened (works):
Image

Account menu closed after opening (still works):
Image

### Preflight Checklist - [x] I use the latest version of YouTube Music (Application). - [x] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. - [x] I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** ### YouTube Music (Application) Version master ### Checklists - [ ] I use the portable version of the YouTube Music Application. - [x] I can reproduce this issue in the [official version of (WEB) YTM](https://music.youtube.com). ### What operating system are you using? Windows ### Operating System Version Windows 10 23H2 ### What CPU architecture are you using? x64 ### Last Known Working YouTube Music (Application) version _No response_ ### Reproduction steps Download a song without opening the account menu for the current session. ### Expected Behavior Song should be downloaded. ### Actual Behavior Download fails with a 403 error due to `isYouTubePremium` returning an incorrect value (with `type: 'audio'` being not available for non-Premium users). ### Enabled plugins 1. Ad Blocker 2. Album Color Theme 3. API Server 4. Captions Selector 5. Discord Rich Presence 6. Navigation 7. Precise Volume 8. Synced Lyrics 9. Taskbar Media Control 10. Video Quality Changer 11. Video Toggle ### Additional Information Copying from [src/plugins/downloader/main/index.ts#L58-L61](https://github.com/th-ch/youtube-music/blob/65bf9129ea4c2de3f2ddd651fdcb40ad626f75d4/src/plugins/downloader/main/index.ts#L58-L61) Prior to opening the account menu (Premium status not detected properly): ![Image](https://github.com/user-attachments/assets/b12946b2-28b5-49e3-b294-261369010d35) Account menu opened (works): ![Image](https://github.com/user-attachments/assets/ab4ad42a-07bf-41df-bf46-2a8628ed52c4) Account menu closed after opening (still works): ![Image](https://github.com/user-attachments/assets/d4d1a267-5577-4ec8-bb94-e06281933322)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#2985
No description provided.