Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_youtube (Read 564446 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: foo_youtube

Reply #1600
Is this still workiung?  I've had issues.  Error msg saying:   Unable to open item for playback (Youtube Source: foo_youtube: server error (403) from rr3---sn-a5mekn6l.googlevideo.com | ffmpeg: Server returned 403 Forbidden (access denied) | foobar2000: Forbidden (403)):   "www.youtube.com/watch?v=x79a2qB5L-Q"

Re: foo_youtube

Reply #1601
RichBum, see above.
Magically yours
Raistlin

Re: foo_youtube

Reply #1602
Hello, managed to get it working with yt-dlp.exe latest from github and added it to environmental variables path. Chose external and preferer over internal as mentioned in previous post by "cantaro_sinfonico", youtube-dl.exe did not work for me. Plus make sure to put your youtube's api key. File > Preferences > Tools > Youtube Source > Maintenance

Re: foo_youtube

Reply #1603
hi, 403 forbidden!!!

Re: foo_youtube

Reply #1604
Managed to solve after a good 30 minutes troubleshooting like crazy. Updating yt-dlp, repasting API key, and all that.
What worked:
RESTUFFING THE COOKIES MANUALLY (copying the curl (POSIX compliant) from a 200 GET petition (like https://www.youtube.com/favicon.ico) in Firefox Dev Tools and pasting them in the own dialog window listing the cookies in the foobar2000 settings (Network tab | [X]Enable persistent cookie storage | Storage > Modify, then Paste button bottom left)
Also reenabling the 'Prefer youtube-dl over internal analyzer', which I had tried on and off in every previous configuration before, it MUST be enabled.
To the extent that blanking my API key doesn't affect the marvelous working state in which the component is right now! Playing back like a mad horse! If things stop working, or some videos don't load because age restriction and similar checks, I'll fill it back, but for now, not in the mood of touching anything else! For the rest of the afternoon at least! :D

Re: foo_youtube

Reply #1605
hi, 403 forbidden!!!
Try what I did!
Of all, make sure that you have:
- 'Prefer youtube-dl over internal analyzer' ENABLED
- and the cookies in good order (yt-dlp auto generates a cookies.txt file, but is a pretty barebones one, to me seems to be the culprit of my problems)
- also, and goes without saying, yt-dlp updated to the last version (most up-to date release is only a few weeks newer than the previous one, so go figure).

Re: foo_youtube

Reply #1606
foo_youtube 3.9.2 is out, fixing the 403 error and adding support for /live/<id>/ URLs.

Re: foo_youtube

Reply #1607
foo_youtube 3.9.2 is out, fixing the 403 error and adding support for /live/<id>/ URLs.

This component has been working fine, when using yt-dlp_x86.exe (updt. 2024.7.25), before this new foo_youtube release. But, if I I stop using yt-dlp, I still get "403 Forbidden (access denied) | foobar2000: Forbidden (403))".

What am I missing guys? :D

Anyway, thanks to the developer for making this component.

Edit: Never mind, there seems to be some kind of bug, I guess.

What I did before I posted this comment was: Under the "Maintenance" tab I right clicked youtube-dl, unchecked "Prefer youtube-dl..." and then clicked "None". Restarted a few times, but I was getting the 403 error. Went back to "External" (the setting I had been using) to double check that "Prefer youtube-dl..." was unchecked, it was. I selected "None" again, and restarted. But, still got 403.

The solution for me was to select "System", restart, and when the component was unable to find it (I don't have it installed) it finally stopped giving me the 403 error. Now, I have changed it to "None" and it works fine. I've restarted and it keeps working fine.

Re: foo_youtube

Reply #1608
New version: "3.9.3 (31-Jul-2024) fixed error opening Youtube URLs caused by another internal change on the site. Youtube gives no rest this month." https://fy.3dyd.com/changelog/latest/

Solved the error I was getting. Thank you for your work, 3dyd.

Re: foo_youtube

Reply #1609
When playing DVD-Audio ISO files, the mouse selects the audio track, which causes foobar2000 to temporarily become unresponsive. Hopefully this can be fixed!
Suggestion: Can the Youtube settings include a function to exclude file formats?

Re: foo_youtube

Reply #1610
version:3.9.3  but again  I get foobar2000: Forbidden (403

Re: foo_youtube

Reply #1611
Try.

Reply #1590 By: devnull2000
https://hydrogenaud.io/index.php/topic,104379.msg1047677.html#msg1047677

yt-dlp (yt-dlp.exe) 2024.08.06
https://github.com/yt-dlp/yt-dlp/releases
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)


Re: foo_youtube

Reply #1613
Thanks

Re: foo_youtube

Reply #1614
When adding a URL it seems to get stuck without any errors while "Processing..." The only way to get out of that again is taskkilling foobar.
Using latest 3.9.4 and yt-dlp.

Re: foo_youtube

Reply #1615
When adding a URL it seems to get stuck without any errors while "Processing..." The only way to get out of that again is taskkilling foobar.
Using latest 3.9.4 and yt-dlp.

Hi. I'm using foo_youtube 3.9.4 with yt-dlp_x86.exe (2024.8.6.0) (Foobar v.2.1.5 [x86]) without issues. I never use 64-bit Foobar, though. If you are using something similar maybe try troubleshooting your other components.

Cheers.

Re: foo_youtube

Reply #1616
QUESTION:
Is there a way to make this component obey the setting under "Maximum number of tracks to fetch" that's located in: Preferences/YoutubeSource/Playlist/Auto-updated Playlists?

PROBLEM:
I have set that number to 5. But, when I add a Youtube playlist and check the box in: View/YoutubeSource/Auto-updated Playlists, it always ends up retrieving 50 tracks. And, if I delete them (or most of them), it will, eventually, automatically retrieve 50 tracks. Over and over again. Whether there are new uploads to that channel, or not.

I noticed that with "Prefer youtube-dl over internal analyzer" enabled, the playlist track has a file path that starts with, for instance: "youtube-dl?limit=50&pos=50&url=https%3A%2F%2Fwww.youtube.com%2Fchannel%..." or "youtube-dl?url=https%3A%2F%2Fwww.youtube.com%2Fchannel...". Apparently, this changes depending on whether you add it through "Add location..." and then double click the track, or through "Load channel or playlist...". But, regardless, both ways end up producing the same results as mentioned above.

Re: foo_youtube

Reply #1617
Hi @all,
{JSP3 foo_youtube_addon} script.
version : 1.0.1 QP 18Sep24.

//---------- CHANGE LOG ----------------------------------------------------//
00AM00 18Sep24 :
- script refactoring and bug fixes.
- Youtube channel management : add, rename, remove from list.

00AM00 01Sep24 :
- youtube search manually.
- youtube search automatically : get trending song list from [last.fm] song database.    
//---------- CREDIT ----------------------------------------------------//
   Credit goes to:
   - @Wil-B (https://github.com/Wil-B) for the fantastic 'Find-and-Play' app, along with the 'Biography' and 'Library-Tree' scripts based on Spider Monkey Panel. The 'Find-and-Play' inspired me to explore [YouTube searching].
   - @Marc2003 (https://github.com/jscript-panel) for the excellent [JScript Panel 3] component.
   # This script uses some API (web service) keys from @Wil-B for trial purposes. Even though these keys are bundled with their public scripts, we should show them respect (follow the links as commented to register for an API key).

//---------- ABOUT this JSP3_foo_youtube_addon script ----------------------//
   @1_ Sole Purpose:
   - YouTube search for clips or any information.
   - Youtube channel management.
   - For others to improve and tailor to their needs (as usual, I've left many comments for easy reference).
   ==> refer to JSP3 [{deployed} album_art [properties].txt] script for youtube download.
   
   @2_ Prerequisites:
   - foo_youtube component: https://www.foobar2000.org/components/view/foo_youtube; https://fy.3dyd.com/  to play YouTube videos.
   - IF We prefer yt-dlp.exe for youtube search/channel loading, then we need  yt-dlp.exe : Get it from here [https://github.com/yt-dlp/yt-dlp]. OTHERWISE, this script utilizes a way provided by JSP3 component (Web).
    (yt_dlp.exe located under this path : {fb2k_Profile_Path}\skins\external_helper\yt-dlp.exe).

   @3_ How It Works:
   - Users need to feed foo_youtube with a structured list of clips that is friendly with the [foo_youtube] component. This builds a playlist from track locations (similar to foo_tags).
   - Where can we get the clip/song list?
     + Manually: Users input text to search directly on youtube.com (not limited to audio tracks).
     + Still manually: Users input an artist name (1), last.fm verifies this name and returns that artist's song list from its database (2), and then youtube.com searches for this data (artist + song title).
     + Automatically: Get the list from somewhere.
      - Possible online 'databases':
        * MusicBrainz (musicbrainz.org)
        * lastFM (last.fm, ws.audioscrobbler.com): We prefer this database as last.fm seems to be YouTube's ally.
         > Top trending tracks
         > Artist's top tracks classified by locale, years, genre, etc.
        * Official Charts (officialcharts.com)

   @4_ How We Interact with This Script:
   - Context menu via right-click.

   @5_ Why YouTube Music:
   - We may not get 'high-res' audio tracks from youtube.com, BUT:
     - It's a huge store for audio tracks, especially the [YouTube Music] streaming platform.
     - Videos often contain audio tracks.
     - Some/many audio tracks were/are uploaded by artists, 'semi-artists,' and are only available on this platform (especially single versions).
     - Trending content.
     . . .
     Let's dive in!

   @6_ Limitations:
   - YouTube searching may return irrelevant results, such as other artists' audio tracks, instead of the ones we're looking for.
     How to improve:
     + Firstly, let YouTube return an audio track list, and then we search for the 'best' or good match based on our judgment (this will slow things down).
     + Alternatively, we can grab only the first/top audio track from the pool list, hoping that Google returns the best match ranked at the top (faster approach).
   - User interface/UI:  almost nothing but text.
   - Bugs: this is just another attempt.
   
Wish you all the best.

@ilovefb2k

Re: foo_youtube

Reply #1618
@ilovefb2k

While the track is playing, right-click on the "foo_youtube addon" Panel.
Input text for Youtube Search > 1 ~ :> input text for direct youtube search > 1.1 ~ by (Web/YT-DLP) foo_youtube_addon search engine

The searched video will start.

The number of tracks in a Playlist created in Playlist Manager becomes "0 (zero)".
It will also be "0" in Auto Playlist.
Is this a specification?
This is very troubling.
Is the only way to do this other than renaming "YouTube_search_backup_backup"?
------
Since it's JSP3 Script, it's easier to ask questions if you post them in this thread.

JScript Panel script discussion/help
https://hydrogenaud.io/index.php/topic,110516.1825.html
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: foo_youtube

Reply #1619
Sorry. "Auto Playlist" cannot be "0".
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: foo_youtube

Reply #1620
@ilovefb2k

While the track is playing, right-click on the "foo_youtube addon" Panel.
Input text for Youtube Search > 1 ~ :> input text for direct youtube search > 1.1 ~ by (Web/YT-DLP) foo_youtube_addon search engine

The searched video will start.
Spoiler (click to show/hide)
Hi @Air KEN,

I thought Marc2003’s JSP3 component was beyond a compiled-script engine, as we can build ‘apps/widgets’ based on that ‘language’. Anyway, thank you for your feedback and suggestion. I will go back to the JSP3 thread, but let me make a post here for others’ quick reference.

Hi @All,

Please find the ‘JSP3 foo_youtube_addon’ script attached hereafter. This script reflects Air Ken’s feedback. I will continue this topic on the JSP3 thread.

Wish you all a nice weekend.

@Ilovefb2k

Re: foo_youtube

Reply #1621
@ilovefb2k

Great!
Many Thanks.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: foo_youtube

Reply #1622
foobar last - youtube source 3.9.6 - audio playback quality.best - but foobar  decoding aleator tracks opus (ok) or aac format (max 128kbps not ok)