Hydrogenaudio Forums

Hosted Forums => foobar2000 => Uploads - (fb2k) => Topic started by: WilB on 25 April, 2014, 12:55:23 PM

Title: YouTube Track Manager
Post by: WilB on 25 April, 2014, 12:55:23 PM

Requirements

foo_youtube 0.0.15.1+ (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=104379&view=findpost&p=856350)

wsh_panel_mod 1.5.6+ (http://code.google.com/p/foo-wsh-panel-mod/downloads/list)

Set up

Add wsh panel mod 1.5.6+ to your layout in the usual  way. Uncheck safe mode in preferences/wsh panel mod. Import the script.

Usage

Play artist, genre or artists and similar artists  tracks in radio mode – adjust song hotness and artist variety.

Search for albums, double click, allow the tracks to  load and play the tracks.

Tracks are from youtube.

Tracks are dynamically named according to search  parameters for artist, title, album and date parameters. Tracks are properly  grouped.

Panel mode and button mode. Works in both default and  columns user interfaces.

Toggle radio and albums panels.

Powered by echonest, foo_youtube, lastfm, musicbrainz  and youtube.

See the readme with the download for more information.

The script was written to give the functionality of the  now defunct foo_lastfm_radio, because 3dyd's foo_youtube plug-in now makes this  possible and because 3dyd said here that such functionality was outside the  scope of his plug-in. In the end the ability to search for albums and load the  tracks was added as well since 3dyd said his plug-in is now more or less  complete.

In  artist and  similar artists mode the selected artist plays at ~ the same frequency as if  use the lastfm website directly.

Thanks to The vern for help and advice. Thanks also to  mire777 for initial inspiration.

This is an initial release of the script so please  report any bugs. The best place for this is probably the Foobar Youtube Radio (http://www.hydrogenaudio.org/forums/index.php?showtopic=105108)  thread.

Enjoy.




    (https://hydrogenaud.io/imgcache.php?id=77c4f903d0aca876a91230a98f05b7f2" rel="cached" data-warn="External image, click to view at original size" data-url="http://i.imgur.com/PiiH57g.png)
Title: YouTube Track Manager
Post by: musikomaniak on 25 April, 2014, 01:03:22 PM
What is the difference with Foobar Youtube Radio of Mire777 ?
Title: YouTube Track Manager
Post by: WilB on 27 April, 2014, 05:23:40 AM
Youtube track manager should be faster. Consequently the  add locations pop-up that can otherwise appear during  track additions should be suppressed. Both youtube track manager and mire777's version have artists and similar  artists plus genre radio. I think mire777's version is extracting info from  lastfm web pages then using a random method to pick artists from a similar  artists list and then a random method to pick one of the artist's tracks. The  version above bypasses all this by getting a list of artist – titles directly  from echonest. Echonest have already done the work of trawling sites like lastfm.  Echonest provides up-to-the-minute artist similarity and song popularity.  Consequently, the artist title lists obtained already have a popularity index  in them. This can be further adjusted through the configurable options of song hotness  and artist variety. Additionally, youtube track manager has an artist radio and  in panel mode provides feedback on the progress/outcome of radio searches and  shows the radio station playing.

One problem with playing tracks from youtube has been having  tracks correctly named. The artist-title parsing rules in the foo_youtube  plug-in go some way to solving this. But there were still many missing/incorrect  artist names etc. Youtube track manager takes advantage of new metadata  handling in foo_youtube and the fact that youtube track manager knows the correct  names from the search parameters. Consequently, tracks are dynamically renamed.

Youtube track manager also has an album manager. By default  this shows the albums of the playing artist. Albums can also be searched for by  artist. Double clicking an album loads the individual tracks which can be  played. Because of the dynamic renaming, tracks should be correctly grouped,  named and sorted by track number. For full details and features please see the  readme.

 
Title: YouTube Track Manager
Post by: musikomaniak on 27 April, 2014, 10:30:05 AM
I'm so stupid that I need, if possible, some more explanation
In wsh panel I pasted your script, which replaced the previous script from Mire777.
After, I did go to listen a music, I right clicked and by Youtube Source I clicked on Search artist concerts.
Very quickly concerts were found toghether with images.

1) How is it possible that the YouTube image is still there and works? The image made by Mire777
Quote
Buttons = {
   but1: new Button(left_margin,top_margin,bw,bh, {normal: image_path + "youtube0.png", hover: image_path + "youtube1.png"}


2) I have a problem:
On my foobar, to see the playlists, I have to click on a button to switch.
When I want to return to the page where I can see the library, the click on artist or album or genre or anything else to start playing does not work.
I have to exit foobar and open it again (sorry for my bad english).
Title: YouTube Track Manager
Post by: musikomaniak on 27 April, 2014, 02:40:18 PM
I'm so stupid that I need, if possible, some more explanation
In wsh panel I pasted your script, which replaced the previous script from Mire777.
After, I did go to listen a music, I right clicked and by Youtube Source I clicked on Search artist concerts.
Very quickly concerts were found toghether with images.

1) How is it possible that the YouTube image is still there and works? The image made by Mire777
Quote
Buttons = {
   but1: new Button(left_margin,top_margin,bw,bh, {normal: image_path + "youtube0.png", hover: image_path + "youtube1.png"}
[/s]

2) I have a problem:
On my foobar, to see the playlists, I have to click on a button to switch.
When I want to return to the page where I can see the library, the click on artist or album or genre or anything else to start playing does not work.
I have to exit foobar and open it again (sorry for my bad english).

Edit:
Sorry, I had made a mistake. I pasted on the wrong wsh panel!
Now, I don't see your button and I don't know what to do.
Title: YouTube Track Manager
Post by: WilB on 27 April, 2014, 02:45:59 PM
If you are using button mode, you have to set Button Mode to true in the wsh panel properties. I should have made that clearer.
Title: YouTube Track Manager
Post by: musikomaniak on 27 April, 2014, 05:51:13 PM
I tried with button mode "true".
I'm not able to place the "button" on skin "LUR" from Russia.
It t takes a large space showing artist name, title, albums.
On my installed foobar with no special skin, I see the image and lines with artist, album, but it takes also a lot of space.
I cannot compare with the images you posted, because they are too small to see details.
At the moment, I give up and keep Mire777 script.
Title: YouTube Track Manager
Post by: WilB on 27 April, 2014, 07:27:03 PM
Thanks for the report. Fixed issues with button mode displaying text when in a panel container larger than the button. Button mode should now correctly operate in any panel size - it should just show the button and no text. To use button mode set the button mode to true in properties. There is also a larger image that illustrates the 3 ways the script can be used. Upper left shows the album panel display, mid-left shows the radio panel display and upper right in the toolbar is just the button for use in button mode. Double clicking an album name will load the tracks.

(https://hydrogenaud.io/imgcache.php?id=0aaf9f97b1df0f957a1516250e7945a7" rel="cached" data-warn="External image, click to view at original size" data-url="http://i.imgur.com/TmcmtvL.png)


HTH
Title: YouTube Track Manager
Post by: musikomaniak on 28 April, 2014, 05:34:06 PM
Thanks for your big image 
Ok, it works with your last script version 2.
Title: YouTube Track Manager
Post by: WilB on 02 May, 2014, 12:00:00 PM
YouTube Track Manager 0.3 beta

CHANGELOG

Added last.fm as a radio source for artist, genre, similar artists and tags (any last.fm tag or toptag can be used to return a selection of tracks). This source complements the echonest source already present.

Added song hotness and artist variety to menu, rather than just being configurable in properties (functions with both echonest and last.fm sources).

Added name of current radio to menu in button mode

Minor bug fixes


Title: YouTube Track Manager
Post by: musikomaniak on 03 May, 2014, 02:37:47 AM
I don't know eaxtly when it happened:
the youtube image disappeared and instead there where 3 letters "ras".
Restarting Foobar, the image was there again.
Title: YouTube Track Manager
Post by: WilB on 04 May, 2014, 12:53:46 PM
Thanks for the report. The bug should now be fixed.
Title: YouTube Track Manager
Post by: musikomaniak on 04 May, 2014, 04:07:33 PM
In french "ras" means Rien A Signaler    No problem.
Title: YouTube Track Manager
Post by: musikomaniak on 09 May, 2014, 04:12:48 AM
I had again "RAS" while listening to a clip found through your last script. No crash, just the configure panel opened itself.
Title: YouTube Track Manager
Post by: WilB on 10 May, 2014, 01:03:11 PM
@musikomaniak - since I cannot reproduce the issue it would be helpful if you would post the console report if the issue occurs with 0.5 beta (foobar2000\view\console). The console probably contains an error message - the last bit of the console output is the most important (I really need the error message and line number the error occurred on).

New version:

CHANGELOG
Improved the last.fm mode
Added background saving and cache option for radio station data (default is off - see readme for more info)
Added filters to reduce the number of Christmas songs when out of the festive season
Changed the artist variety display so it now shows the approximate number of artists used
Changed the properties format. For a clean view of properties it recommended to clear properties and reinstate any custom settings

There have been a lot of changes, so please report any bugs
Title: YouTube Track Manager
Post by: musikomaniak on 10 May, 2014, 03:15:40 PM
Hi WilB, in foobar (two in portable version) where there is your script I don't have "View>Console. Sorry.
Maybe you could help me to position YT image, I'm unable to understand what to put left/right - width...

[attachment=7893:yt-track-position.png]

Title: YouTube Track Manager
Post by: WilB on 11 May, 2014, 07:59:45 AM
View\console is a foobar2000 main menu command that's accessible on the view menu in the main toolbar. May be you are using some theme that's hidden the main toolbar. You can temporarily enable the main toolbar if its a columns ui theme by preferences\columns ui\main\show toolbars (check box). If its default user interface then I don't think you can remove it completely - but if so re-enable the main toolbar. Or you could assign a keyboard shortcut to show console, again in the view section of the keyboard shortcut tree in preferences.

With regard to the button positioning, that depends on the container the buttons are in. Look on the columns ui layout menu. If it's a columns ui buttons toolbar then I haven't used that method for ages - so you would need to read the columns ui documentation. If its  panel stack splitter container then try the following. Locate the panel stack splitter containing the buttons in the picture. Add a wsh panel mod to the panel stack splitter. Go to the Panellist tab of the panel stack splitter container, select the wsh panel mod you added and ensure forced layout is ticked and that hide panel on start up is not ticked. Go to the script section. Put the following code at the end of the Per Track section:
$movepanel_c(WSH Panel Mod,0,0,22,16)
Values in movepanel are x,y,w,h in pixels - so it contains the button width and height already. Change the x y values as required. And of course ensure the srcipt is imported and button mode is set to true.

HTH
Title: YouTube Track Manager
Post by: musikomaniak on 11 May, 2014, 08:55:36 AM
Thanks.
My problem is that I don't know wich values are required...
Don't worry.
I'll tell you if I have other problems about "Ras" or else. Your last script is on my portable foobar, with button "on", far from other buttons

Code: [Select]
Startup time : 0:01.041989
WSH Panel Mod (YouTube Track Manager v0.5 beta by Wilb): initialized in 5 ms
Title: YouTube Track Manager
Post by: musikomaniak on 11 May, 2014, 12:45:01 PM
Thanks.
My problem is that I don't know wich values are required...
Don't worry.
I'll tell you if I have other problems about "Ras" or else. Your last script is on my portable foobar, with button "on", far from other buttons

Code: [Select]
Startup time : 0:01.041989
WSH Panel Mod (YouTube Track Manager v0.5 beta by Wilb): initialized in 5 ms


PS
Would it be possible I use my button? If possible I suppose in properties or somewhere else I should indicate the path or something if I use "Add button" in "Options - buttons".
Title: YouTube Track Manager
Post by: WilB on 11 May, 2014, 02:03:51 PM
New version - minor bug fix.

@musikomaniaK
You can only do this by editing the code. It's fairly simple.

Code: [Select]
Change lines 351 to 353 as indicated. Be sure to comment out create buttons as indicated. You will need to enter your image paths to replace the ones below. PAY PARTICULR ATTENTION TO THE PRESENCE OF " AND USE \\ AS INDICATED FOR NEW FOLDERS AND NOT \. ALSO THE PARENTHESES AND FULL STOPS ARE IMPORTANT! If the path is wrong in any way you will know because it will crash - cRAShed - it seems you only see the RAS. 
         var ft_img_off = gdi.Image(fb.ProfilePath + "images\\image_off.png");
         var ft_img_on = gdi.Image(fb.ProfilePath + "images\\image_on.png");
         //create_buttons();
        
         If your new buttons are a different size you may want to change the pixel sizes on line 314
         var button_w = 22, button_h = 16; JUST CHANGE THE NUMBERS - DON'T CHANGE THE PUNCTUATION ELSE IT MAY CRASH
Title: YouTube Track Manager
Post by: musikomaniak on 11 May, 2014, 06:01:07 PM
Ok, it works
(Now I have to find buttons similar to which I had found !).
I'm expert to make things hardly complicated.
Title: YouTube Track Manager
Post by: musikomaniak on 12 May, 2014, 05:47:33 AM
I just had "RAS" appearing in place of YT image (Your script image). There was no crash, just "Ras".
Portable Foobar with EsPlaylist - Skin LUR.
Windows 7
Code: [Select]
UI Hacks: virtual disk hooks OK (0x0300)
UI Hacks: DLL-hijacking succeeded
UI Hacks: hooks status 0x430000
Components loaded in: 0:00.049533
Configuration read in: 0:00.006434
Watching: D:\Musique
WSH Panel Mod ({7E59A5FF-3876-4BA1-96BE-BE7C07BF25AC}): initialized in 21 ms
Album list panel: initialised in 0.006 s
WSH Panel Mod ({4CA857F1-AC93-42E2-8710-3D5AA5895DA7}): initialized in 0 ms
WSH Panel Mod (YouTube Track Manager v0.6 beta by Wilb): initialized in 10 ms
User Interface initialized in: 0:00.552895
Startup time : 0:00.736476
Opening track for playback: "D:\Musique\Jazz\Ahmad Jamal\Ahmad Jamal - Swahililand.flac"
Wave cache: finished analysis of "D:\Musique\Jazz\Ahmad Jamal\Ahmad Jamal - Swahililand.flac"
Opening track for playback: "3dydfy://www.youtube.com/watch?fb2k_title=All%20Blues&fb2k_artist=Ron%20Carter&v=Z53ytYBJ5m4"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Autobackup: Backed up 103 items to autobackup.20140512-113333.zip
Opening track for playback: "3dydfy://www.youtube.com/watch?fb2k_title=Ray%20Allen%203%20Point%20King%20Mix%202011%20%5BA%20Hundred%20Dreams%20From%20Now%5D&fb2k_artist=Ray%20Bryant&v=7f88goWdwO4"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Opening track for playback: "3dydfy://www.youtube.com/watch?fb2k_title=No%20Woman%20No%20Cry&fb2k_artist=Monty%20Alexander&v=FaFdK_hXBnU"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Opening track for playback: "3dydfy://www.youtube.com/watch?fb2k_title=Blackbird&fb2k_artist=Brad%20Mehldau&v=Fw-X5GTiYGw"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Opening track for playback: "D:\Musique\Italia\Claudio Baglioni\Assieme\Mille giorni di te e di me.flac"
Opening track for playback: "3dydfy://www.youtube.com/watch?fb2k_title=Troppo%20Amore&fb2k_artist=Michele%20Zarrillo&v=DMAJG3gPf6I"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Opening track for playback: "3dydfy://www.youtube.com/watch?fb2k_title=Riccardo%20Cocciante%20%22Ti%20scorder%C3%B2%2C%20ti%20scorder%C3%B2%22%20%5BTi%20Scordero'%2C%20Ti%20Scordero'%5D&fb2k_artist=Riccardo%20Cocciante&v=Gxq3ZVugVKA"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Wave cache: finished analysis of "3dydfy://www.youtube.com/watch?fb2k_title=Ray%20Allen%203%20Point%20King%20Mix%202011%20%5BA%20Hundred%20Dreams%20From%20Now%5D&fb2k_artist=Ray%20Bryant&v=7f88goWdwO4"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Error: WSH Panel Mod (YouTube Track Manager v0.6 beta by Wilb): Erreur d'exécution Microsoft JScript:
'undefined' a la valeur Null ou n'est pas un objet
File: <main>
Ln: 2406, Col: 21
<source text only available at compile time>
Reading from MP4 file failed: frame 12926 of 12929.
Wave cache: generic IO exception (3dydfy: Write error) for "3dydfy://www.youtube.com/watch?fb2k_title=Blackbird&fb2k_artist=Brad%20Mehldau&v=Fw-X5GTiYGw"
Wave cache: finished analysis of "D:\Musique\Italia\Claudio Baglioni\Assieme\Mille giorni di te e di me.flac"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Autosaving... (I)
Configuration saved in: 0:00.081475
Autobackup: Backed up 104 items to autobackup.20140512-113803.zip
Wave cache: finished analysis of "3dydfy://www.youtube.com/watch?fb2k_title=All%20Blues&fb2k_artist=Ron%20Carter&v=Z53ytYBJ5m4"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Wave cache: finished analysis of "3dydfy://www.youtube.com/watch?fb2k_title=Troppo%20Amore&fb2k_artist=Michele%20Zarrillo&v=DMAJG3gPf6I"


I replaced in your last 0.6 script v0.5 beta by v0.6 beta
Title: YouTube Track Manager
Post by: marc2003 on 12 May, 2014, 10:17:41 AM
There was no crash, just "Ras".


the full message is

Code: [Select]
Aw, crashed :(


you're just seeing ras because your panel is so small and the text is centred chopping the ends off.
Title: YouTube Track Manager
Post by: musikomaniak on 12 May, 2014, 10:33:06 AM
Thanks Marc2003 for the explanation.
I did not had Aw, crashed
nor computer system crash

Sorry, but, what do you mean by small panel? Do you mean Splitter settings configuration, with layout - left - top...?
Title: YouTube Track Manager
Post by: WilB on 12 May, 2014, 10:35:28 AM
New version

@musikomaniak Thanks for the report. Hopefully the issue is fixed in version 0.7.

@marc2003... Yes - I had indicated that it was a crash in post #20 albeit not  as explicitly as your post since I mentioned it in a code box

If any one has issues with foobar2000 grabbing focus, unchecking "Bring to  front when adding new files" in foobar2000\preferences\shell integration can be used to stop this behaviour.
Title: YouTube Track Manager
Post by: musikomaniak on 12 May, 2014, 10:47:27 AM
Again with 0.6 script
Code: [Select]
Opening track for playback: "3dydfy://www.youtube.com/watch?fb2k_title=Mouvements&fb2k_artist=Bir%C3%A9li%20Lagr%C3%A8ne&v=6ROlGn_dZuo"
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
3dydfy, opening mp4: download - foo_youtube, decode - foobar2000
Error: WSH Panel Mod (YouTube Track Manager v0.6 beta by Wilb): Erreur d'exécution Microsoft JScript:
'undefined' a la valeur Null ou n'est pas un objet
File: <main>
Ln: 2406, Col: 21
<source text only available at compile time>
Wave cache: finished analysis of "3dydfy://www.youtube.com/watch?fb2k_title=BIRELI%20LAGRENE%20-%20Before%20You%20Go%20%5BBefore%20You%20Go%5D&fb2k_artist=Bir%C3%A9li%20Lagr%C3%A8ne&v=OKGC8CnCuVE"
Wave cache: finished analysis of "3dydfy://www.youtube.com/watch?fb2k_title=Bir%C3%A9li%20Lagr%C3%A8ne%20%22Cleave's%20Changes%22%20-%20Acoustic%20%2F%20TV5MONDE%20%5BChange%20Partners%5D&fb2k_artist=Bir%C3%A9li%20Lagr%C3%A8ne&v=SWKV8VkAkfg"


Later I'll use your last script and uncheck  "Bring to front when adding new files".
Title: YouTube Track Manager
Post by: WilB on 12 May, 2014, 11:51:18 AM
Yes that error seen in 0.6 beta is the same as in your previous report and its the same line causing the error. Assuming the script was not changed in a way that altered the line numbers, the error on that line number should be corrected in version 0.7.
Title: YouTube Track Manager
Post by: mire777 on 12 May, 2014, 03:52:58 PM
If any one has issues with foobar2000 grabbing focus, unchecking "Bring to  front when adding new files" in foobar2000\preferences\shell integration can be used to stop this behaviour.


Does this mean that ''add location'' will not appear anymore?
With your previous version, in clean portable install DUI, i didn't have ''add location'' at all.
In CUI this appears.
Doesn't know how this is possible, is this because script or something else(maybe fast processing)?


***
Also about ''track naming'', in my script metod i use didn't work as i expected.
So i will use your metod -which is bether done.

But i have something to report:

I noticed problems with ''track naming'' in your script also:

Script always use ''%artist% (youtube track name) [track name search], if best match isn't find.

-If 'youtube track name' is: ''like a virgin'' > track name will be: ''madonna - like a virgin''. But this is not necessarily artist madonna.
So you can receive different results(example):
*''Madonna - Amos Lee - Like a Virgin [Like A Virgin]''  - (but this is not artist 'madonna')
*''Madonna - CAUGHT A GHOST Like a Virgin OFFICIAL VIDEO Madonna cover [Like A Virgin]''

Or:

*''Madonna - Madonna - Like A Virgin - Live at MTV [Like A Virgin]''

I suppose(i alredy done this):

If 'Madonna' already exist in %artist% , this can be removed from %title% ,
Then if 'Like A Virgin' already exist in %title% this can be removed from %title%
So it be:

*''Madonna - Like A Virgin - Live at MTV''

Also as i noticed Lowercase and Uppercase letters are also problem? Or I missed something, when testing?
If script search:
''Madonna - Like A Virgin'' but only find ''maDONNa LIKE A vIRgiN'' it will say ''BAD MATCH''.

I think that all this can be improved..
Anyway, this is better than mine..
Title: YouTube Track Manager
Post by: WilB on 12 May, 2014, 06:15:55 PM
@mire777

Thanks for the feedback.

I was having problems when working in applications other than foobar2000 or just when editing wsh scripts that on track change, the addition of a new track by add locations would grab focus away, e.g I would be typing away and all of sudden typing in the document would fail because foobar2000 had snatched focus. Unchecking "Bring to front when adding new files" solved this issue for me. It has nothing to do with the appearance of the add locations window when tracks are added. Since the new naming method and its faster implementation, I never see the add locations pop-up at all when tracks are added on basic or complex DUI and CUI set-ups.

Track naming - yes I had noticed very occasional tracks named by the search artist that were in fact by a different artist. I could change it to show the whole title (which usually contains the artist name) in place of the search artist name if there is a bad match. I will see what works best - but I am having trouble testing an implementation because I am not getting any examples! Let me know if you have a better way.

Case sensitivity - this should be correctable.
Title: YouTube Track Manager
Post by: mire777 on 12 May, 2014, 08:51:25 PM
Since the new naming method and its faster implementation, I never see the add locations pop-up at all when tracks are added on basic or complex DUI and CUI set-ups.

Track naming - yes I had noticed very occasional tracks named by the search artist that were in fact by a different artist. I could change it to show the whole title (which usually contains the artist name) in place of the search artist name if there is a bad match. I will see what works best - but I am having trouble testing an implementation because I am not getting any examples! Let me know if you have a better way.


I was also noticed that in DUI ''add location'' doesn't pop-up, but in CUI it appears again in xch4nge skin, probably this depends on the foobar configuration.

Yes, in your script most of tracks are top tracks, all of them exist on youtube - in format: %artist% - %title%.
So you can't test this.
My script is different, with different tracks especially in genre mod.

How to test. Find some track that your script doesn't rename properly, then modify script that receive only that track -on track change.
Or you can try last.fm mode?

I was testing this for days now on my script, with your track naming.
Works well 90%.
But what i was trying now, is to mach only first word of %artist% and first word of %title% in 'data.title'.
Example: ''Jennifer Lopez - First Love'' > will match only 'Jennifer - First' , this works in most 95% cases.
Again not perfect, and some tracks are named with different artist.
If i found something better i will inform you.

This probably should be some complex combination.

Only that should be changed now is that if track is in format:
''Madonna - Madonna - Like A Virgin - Live at MTV [Like A Virgin]'' should be: ''Madonna - Like A Virgin - Live at MTV''.

I was done this, and it works good.
No need for 2 artist names...
Title: YouTube Track Manager
Post by: musikomaniak on 14 May, 2014, 06:07:57 AM
YouTube Album. Search for album
My YouTube Album playlist is always empty? Album playlist is checked.
Do I make something wrong or is it because when I search I never know album titles, so I write only Artist name
Title: YouTube Track Manager
Post by: WilB on 14 May, 2014, 10:23:30 AM
Yes in button mode you need to enter a valid album name including the | separator in the format artist | album, since there is nowhere to display a list of albums. In panel mode this issue doesn't arise because the album names are displayed. In panel mode "Choose Artist" can be used to search for the albums of a particular artist; additionally the albums of the playing artist are shown. Double clicking an album will load the tracks. If having access to albums is important and you don't want to be looking at the panel all the time, you may want to consider putting the panel in a tab or use a button to toggle it's display with another panel.
Title: YouTube Track Manager
Post by: musikomaniak on 14 May, 2014, 11:28:42 AM
Thanks for your reply.
I made a trial of your script on a virgin portable foobar with button Mode "false" where I can see title and other things.
Unfortunatly I don't know how to put the panel in a tab keeping the same appearance or use a button to toggle it's display with another panel.
I give up for album search. May be in a future...
Title: YouTube Track Manager
Post by: mire777 on 16 May, 2014, 05:05:26 AM
It would be better that you have albums from drop-down menu(for selected artist) in button mode, and what missing is ,get next video' in menu.
Title: YouTube Track Manager
Post by: WilB on 16 May, 2014, 12:52:11 PM
By default 5 tracks are loaded in radio mode and so upcoming tracks can be viewed or played. So "next videos" are already in the playlist. If you want a different selection, double click on the last track and it will load new ones.

For albums I think its much better using it in panel mode and just showing the panel on a tab toggle when required. Then there is a proper scrollable list etc. Many artists have loads of albums (nearly 70-100 isn't uncommon) and this doesn't gel well on a drop down menu, and so would be rather messy. Anyway, I will give the matter further consideration.
Title: YouTube Track Manager
Post by: musikomaniak on 16 May, 2014, 01:21:40 PM
Albums in panel mode will be only for intelligent people or programmers/coders
Title: YouTube Track Manager
Post by: WilB on 16 May, 2014, 01:32:52 PM
I disagree. Anybody can use panels in simple DUI or CUI set-ups with or without tabs. In contrast button mode only works well in panel stack splitter, which is less popular. You certainly need some coding skills to put buttons in panel stack splitter. Most users of panel stack splitter do not know how to properly put in buttons. You need no coding skills to use the CUI or DUI panel and tab modes that are inbuilt into these user interfaces and so the statement that "Albums in panel mode will be only for intelligent people or programmers/coders" is the opposite of the case.
Title: YouTube Track Manager
Post by: musikomaniak on 17 May, 2014, 11:17:50 AM
Lets say I have no skill at all.
My layout
[attachment=7902:layout.png]

I'd like to keep same appearance
[attachment=7903:myskin.png]

and do not know where to add a panel for YT Tracker used without button mode.

Now I had an horrible problem!
I did "Search Youtube...", wrote artist name. It founded a lot of music but when I clicked on one title, it went in my Radios playlist (the streaming radios) and they all disappeared!!
Title: YouTube Track Manager
Post by: WilB on 17 May, 2014, 11:53:39 AM
It would do. I have no control over the behaviour of the foo_youtube plugin. That menu item provides access to the foo_youtube source search box for convenience. If you double click a search item found in the box it will overwrite the active playlist, which is usually the one showing. This will happen however you access that box. You should be able to immediately use the main foobar2000 menu edit\undo to undo the change to get the original playlist back. Alternatively, drag tracks from the box to the playlist. It then should add the track and not replace the whole playlist. This behaviour is nothing to do with me. (If you haven't shut down foobar2000 you can temporarily make the playlist-v1.3 folder read-only in your foobar2000 profile location as it only saves updated changes on exiting foobar2000). foo_jesus is often recommended for regular back-ups.

HTH
Title: YouTube Track Manager
Post by: musikomaniak on 17 May, 2014, 11:56:45 AM
Ok. I forgot "undo"
It will be difficult for a friend of mine using foobar on my computer.

While you gave me this answer I edited my previous message, about my lack os skill
Title: YouTube Track Manager
Post by: WilB on 17 May, 2014, 04:51:28 PM
New version

CHANGELOG
Improved analysis of youtube search results
Improved track naming
Dynamic metadata now supports the track length using new foo_youtube URL param 3dydfy_alt_length (requires foo_youtube 0.0.16.1+ - many thanks to 3dyd for adding the method)
Minor bug fixes

A technical note:
The skipping of analysis at clip info retrieving by foo_youtube if fb2k_ fields are used is important for helping to supress the add locations box that can otherwise appear during track additions. YouTube Track Manager has always sent the artist and title and with albums the album title and year as well as fb2k_fields.  But a consequence of this was that tracks lengths were not appearing until a track was played. Sending the track length as a fb2k_field (3dydfy_alt_length) now ensures that the track lengths are immediately shown in the playlist.
Title: YouTube Track Manager
Post by: WilB on 21 May, 2014, 06:23:19 PM
New Version

CHANGELOG
Further enhancements to track naming
Added better filters to reduce the number of full albums that can show in place of individual tracks  - tracks < 30 min are preferred if available
Minor bug fixes
Title: YouTube Track Manager
Post by: WilB on 06 July, 2014, 06:19:03 PM
New version

CHANGELOG

Fixed bug in playlist handling when unable to open item for playback
Updated title handling due to youtube changes
Title: YouTube Track Manager
Post by: HoTTSKuLL on 11 August, 2014, 05:39:26 AM
First of all it is a great extension.
I have been using this for about a week now all the features work perfectly. But it would be great if we could get the cover art of the playing/selected song when we hit the toggle button instead of just displaying the name of the song. I have tried to do this but in vain. Hope you could get to this suggestion
Title: YouTube Track Manager
Post by: WilB on 12 August, 2014, 11:04:19 AM
Nice suggestion - I will add it into the next release
Title: YouTube Track Manager
Post by: WilB on 26 August, 2014, 12:59:40 PM
CHANGELOG

Added the ability to black list videos.

Useful to exclude poor versions like those with significant junk before the music starts. Black listing is based on the video id number.

Black listed videos will not be loaded the next time the track is added to a playlist by YouTube Track Manager, providing an alternative version is found.

Note that this will not stop the loading of a particular track, just specific black listed video versions of the track.

Black lists are managed on the menu - add and remove/view. The remove/view menu item toggles upon clicking between allowing removal and viewing the black listed videos in youtube so that black listed videos can be checked.

Added the ability to show cover and artist images. Uses foobar2000 core settings in preferences\display\album art search patterns for front cover and artist art. Recognises foo_youtube thumbnails. There are also options to enable cycling through multiple images of an artist in properties. Double clicking an image will toggle between cover and artist images. Double clicking the text toggles the text between the now playing radio station and the artist - title of the playing track if a radio station is being played.

For full details see the readme.

There have been a lot of changes, so please report any bugs.
Title: YouTube Track Manager
Post by: WilB on 01 September, 2014, 06:56:48 PM
New version due to field name change in foo_youtube 1.2

If you upgrade to foo_youtube 1.2, please use YouTube Track Manager 1.2 for full functionality
Title: YouTube Track Manager
Post by: WilB on 13 October, 2014, 01:39:13 PM
New version

CHANGELOG

Added Similar Songs mode. Plays tracks similar to a chosen track. Similar song lists are obtained from echonest or last.fm.

Added option to play own music if present in media library instead of YouTube tracks (radio mode only). YouTube tracks will be used for music not in media library. To enable, set "*USER.Radio: Use Media Library" to true in properties.

Fixed broken album searching due to a recent web-service change.

Requires foo_youtube 1.3.1+ and wsh_panel_mod 1.5.6+.

(https://hydrogenaud.io/imgcache.php?id=bde618e9f6d26f2c8981be2619e2e1fe" rel="cached" data-warn="External image, click to view at original size" data-url="http://i.imgur.com/G4Uhymt.jpg)
Title: YouTube Track Manager
Post by: WilB on 25 October, 2014, 06:45:32 AM
New version

CHANGELOG

Added "Favourite radio Stations" with auto or manual management of up to 30 favourites from the menu.
Title: YouTube Track Manager
Post by: WilB on 15 February, 2015, 12:43:28 PM
New version

YouTube Track Manager is a database search companion to foo_youtube, that features standard and auto-pick "radio modes" both with automatic track naming. YouTube offers audio-only streams at up to 256 kbps AAC as well as videos

CHANGELOG

Improved album management:
Other enhancements:

Compatibility

Use panel mode for full album mangement, since it's not practical to manage long lists in button mode. Please see the readme for full information and to get the most out of the script

There have been a lot of changes, so please report any bugs
Title: YouTube Track Manager
Post by: WilB on 21 April, 2015, 06:01:53 PM
New version

CHANGELOG

See the previous post (#50) for more information about YouTube Track Manager.
Title: YouTube Track Manager
Post by: samithaj on 22 April, 2015, 05:34:22 AM
Thank you so much for this WilB
Optional media library usage is great for saving my data usage.
Any way to prefer tracks
Soft playlist have options like:
(https://hydrogenaud.io/imgcache.php?id=5fbb6e12f67a70b04bf2d5ee06da8660" rel="cached" data-warn="External image, click to view at original size" data-url="http://i.imgur.com/rfomMaj.png)
Title: YouTube Track Manager
Post by: WilB on 23 April, 2015, 12:39:08 PM
^ Done

New version

Optional media library - can now choose on the "Manage" menu item which media library tracks to prefer: "Highest Bitrate" (default), "Lowest Bitrate", "Longest", "Shortest", "Latest", "Oldest" or "No Preference" (original behaviour). foo_playcount is supported and if installed there are also "Most Played", "Highest Rated" and "Highest Plays Per Day" options. This works whenever media library tracks are loaded instead of YouTube tracks. THESE MENU OPTIONS ARE ONLY AVAILABLE IF "*USER.USE MEDIA LIBRARY" IS ENABLED IN PROPERTIES.
Title: YouTube Track Manager
Post by: onirwai on 14 May, 2015, 10:30:23 AM
Awesome work, thanks!

The button text shows up fuzzy and annoying, could you please try to fix that on the next release?

(https://imgrush.com/x7RbSZs-WNNV.png)
Title: YouTube Track Manager
Post by: WilB on 14 May, 2015, 06:29:22 PM
Noted - I will try and improve it for the next release. For now you can sharpen the button text as follows: shift + right click the panel, click configure, then ctrl + h, and replace gb.SetTextRenderingHint(3) with gb.SetTextRenderingHint(0) - do this for the 2nd, 3rd and 4th instances in the script. Leave the 1st and 5th instances unchanged. But if you also want to sharpen the YT button, change the 1st instance as well, but I don't think it needs changing.
Title: YouTube Track Manager
Post by: onirwai on 18 May, 2015, 02:34:32 PM
replace gb.SetTextRenderingHint(3) with gb.SetTextRenderingHint(0) - do this for the 2nd, 3rd and 4th instances in the script.

Already did that, because I tried to snoop around in the code before I posted. But it still looks soft. Weird. Anyway, thanks! Awesome script!
Title: YouTube Track Manager
Post by: samithaj on 21 June, 2015, 08:37:28 PM
^ Done

New version

Optional media library - can now choose on the "Manage" menu item which media library tracks to prefer: "Highest Bitrate" (default), "Lowest Bitrate", "Longest", "Shortest", "Latest", "Oldest" or "No Preference" (original behaviour). foo_playcount is supported and if installed there are also "Most Played", "Highest Rated" and "Highest Plays Per Day" options. This works whenever media library tracks are loaded instead of YouTube tracks. THESE MENU OPTIONS ARE ONLY AVAILABLE IF "*USER.USE MEDIA LIBRARY" IS ENABLED IN PROPERTIES.

Thanks for this WilB  and foo_playcount options are much better for getting the right track
Title: YouTube Track Manager
Post by: mdkgr on 03 July, 2015, 12:08:55 PM
Hello and thanks for the plugin!

I got 4 questions:

1. Why is my interface different than yours? I have installed wsh_panel_mod 1.5.6+ and foo_youtube from here: http://fy.3dyd.com/download/ (http://fy.3dyd.com/download/). Got f2k v1.3.8.

[attachment=8347:_______010.png]
[attachment=8345:_______009.png]

2. How do I get that theme?

[attachment=8346:G4Uhymt.jpg]

3. I get a playback error sometimes at 1/2, or 3/4 of the currently playing track. Playback stops and it goes to the next song. If I manage to reproduce it, I'll post a screenshot...

4. How to stop f2k from popping annoying notifications on taskbar everytime songs are changing?

Thanks!

Title: YouTube Track Manager
Post by: WilB on 06 July, 2015, 07:33:04 AM
1. It looks the same to me?????????. So I am not sure what you mean. Left pane is youtube trackmanager in album view (click yT button to toggle with nowplaying view). Other panels are not related to youtube trackmanager. If its the question marks you don't like when album name is absent enclose in square brackets; e.g. [%album%] in playlist configuration. Colours are set as described below.

2. This is a simple default user interface theme.

Set the following colours (Red-Green-Blue) in preferences\default user interface\colors and fonts

Text 154-194-254
Background 24-44-73
Selection 50-95-31
Highlight 229-240-255

Layout is is organised by standard splitters (view\layout\enable layout editing mode):

Vertical is a splitter (left/right); then left pane of this has two splitters (top/bottom) that contain youtube trackmanager (nowplaying view shown), Lyric Show Panel 3 (http://www.foobar2000.org/components) and the spectrum. Right panel is EsPlaylist (http://foo2k.chottu.net/).

3. Probably this is unrelated to youtube trackmanager; playback errors of youtube videos may be caused by internet dropouts, especially if playing videos that require high bandwidth as opposed to audio only. Try the preconfigured audio version of foo_youtube or check the foo_youtube thread (http://www.hydrogenaud.io/forums/index.php?showtopic=104379) for setup hints. Very occassionally I have had poor youtube videos that are incorrectly truncated. Let me know if you have more info and I may be able to help further.

4. Youtube trackmanager does not control foobar2000 notifications. These are core foobar2000 settings. Check settings in preferences\default user interface.

HTH
Title: YouTube Track Manager
Post by: luucasalves on 06 September, 2015, 12:51:26 PM
Awesome work, thanks!

The button text shows up fuzzy and annoying, could you please try to fix that on the next release?

(https://imgrush.com/x7RbSZs-WNNV.png)


name from skin?
Title: YouTube Track Manager
Post by: samithaj on 11 October, 2015, 01:24:24 PM
Anyway you could save the results form like "Artist top/similer tracks" as a json file (like marc2003's scripts does) so we can access the songs offline??
Title: YouTube Track Manager
Post by: WilB on 12 October, 2015, 07:25:41 AM
    The  script can already pretty much do this although by a slightly different method,  i.e. you can already save the results (up to the top 50) yourself and access  the songs offline. To do this, generate the top 50 playlists whilst the media  library is enabled. Offline means restricting playback to songs in the library.  So to identify library tracks in the playlists use something like $if($strstr(%path%,youtube.com/watch?),YouTube  Video,Library Track). They can then be sorted if required. Symbols etc can be  used instead of the text descriptions. This method also makes it much easier to  identify the tracks you can play.


Title: YouTube Track Manager
Post by: WilB on 18 October, 2015, 12:30:27 PM
    New version 1.8 (see the readme for  full information & installation instructions) CHANGELOG:

    Improved button drawing

    Improved  radio modes  These offer single artist, genre/top tags, similar artists & similar songs  playback based on track popularity data from last.fm, echonest  or your library. They're great for listening to music of a chosen  style. Last.fm & echonest also work well for music discovery with  echonest recommended for simplicity & last.fm for more  control or if you prefer the musical choices. Uses YouTube links  (default; audio only & video) or available library tracks. Library  radio offers a new way of playing your own music & avoids  YouTube links. Changes to radio settings require a station reload.

                                                                        Album  manager The  album manager can use album track lists from MusicBrainz or last.fm to build  albums from YouTube links. Available library tracks (artist - title match) can  be used instead of YouTube tracks.

        [/li][/list]                                        Nowplaying panel New image only mode  (mouse middle click or "Manage" menu): acts as an album artwork panel  for covers and artist images. Dual functionality is useful if you no longer  wish to look at album & track lists. Nowplaying panel can cycle through multiple artist images (see readme) &  display covers [external + embedded] / YouTube pics / radio search feedback /  nowplaying text / active playlist name. Toggles: double click > image/text  types; middle click > image only mode vs  image + text; yT button> nowplaying vs album  manager panels.

    Properties Simplified &  cleaned of redundant. Export previous before updating, if you need a record.

    Album Playlist Please rename to  "Album" or alter property name. Previous: "YouTube Album"  N/A now.

    Requires: wsh_panel_mod 1.5.6 (https://code.google.com/p/foo-wsh-panel-mod/downloads/list) or higher (https://github.com/19379/foo_uie_wsh_panel_mod/releases) (don't use 1.5.8); foo_youtube (https://www.hydrogenaud.io/forums/index.php?showtopic=104379) 1.12.1+. Optional: m-TAGS (http://www.foobar2000.org/components/view/foo_tags) 1.12+; foo_playcount (http://www.foobar2000.org/components/view/foo_playcount).
Title: YouTube Track Manager
Post by: widerock on 19 October, 2015, 04:18:23 AM
    New version 1.8 (see the readme for  full information & installation instructions) CHANGELOG:


Thnak you for great scripts.

I have two issues.

(1)  There is some problem with searching the 'Korean artist" in 'Korean Character."
      When I make a radio from one of "Korean artists", the resulting songs are not usually what I expected.

(2) Whenever foobar plays the next song from youtube radio, the window changes from the other application to the foobar.
Title: YouTube Track Manager
Post by: WilB on 20 October, 2015, 07:21:16 AM
    New  Version 1.9   

Fixed  minor issues with library radio and m-TAGS.   

@widerock   

(1)  Thanks for the report. Fixed 'Korean Character' and other character support  with Echonest radio. Last.fm radio was already OK. Nonetheless, some Korean  artists have very few or zero tracks in the Echonest database. Last.fm seemed  fine and so I would recommend using Last.fm radio for Korean artists.   

(2)  I suspect that is due to a foobar2000 setting. Uncheck "Bring to front  when adding new files" in foobar2000\preferences\shell integration to  ensure that foobar2000 does not grab focus away from other applications (see  set up instructions in the readme).

Title: YouTube Track Manager
Post by: widerock on 20 October, 2015, 09:47:50 PM
    New  Version 1.9   

Fixed  minor issues with library radio and m-TAGS.   

@widerock   

(1)  Thanks for the report. Fixed 'Korean Character' and other character support  with Echonest radio. Last.fm radio was already OK. Nonetheless, some Korean  artists have very few or zero tracks in the Echonest database. Last.fm seemed  fine and so I would recommend using Last.fm radio for Korean artists.   

(2)  I suspect that is due to a foobar2000 setting. Uncheck "Bring to front  when adding new files" in foobar2000\preferences\shell integration to  ensure that foobar2000 does not grab focus away from other applications (see  set up instructions in the readme).


Thank you for the update. Now, I'm enjoying the youtube radio.
Title: YouTube Track Manager
Post by: samithaj on 24 October, 2015, 03:22:45 PM
$if($strstr(%path%,youtube.com/watch?),YouTube  Video,Library Track).

That will do it


And new improvements are excellent!!!
finding new songs has never been this easier
Title: YouTube Track Manager
Post by: WilB on 31 October, 2015, 01:39:25 PM
    New Version: YouTube Track Manager 2.0     

    Improved  performance for both radio and album modes, especially when optional media  library usage is enabled   

    Minor  bug fixes & enhancements   

    YouTube Track Manager 2.0 requires:

                        Installation  instructions are in the readme: see Set Up.

 
Title: YouTube Track Manager
Post by: samithaj on 13 November, 2015, 09:13:24 AM
Can you please consider adding Artist and Tack Title formatting to your properties dialog
Some tracks with 'feat." artist not properly getting searched
Title: YouTube Track Manager
Post by: WilB on 13 November, 2015, 12:50:58 PM
New  Version: YouTube Track Manager 2.1

Album manager: added smooth scrolling.

Added field re-mapping of artist, genre and title, used  for searches. Set in "*User.Titleformat..." in properties.

YouTube Track Manager 2.1  requires:

Installation  instructions are in the readme: see Set Up.
Title: YouTube Track Manager
Post by: samithaj on 13 November, 2015, 01:25:34 PM
Thank you for this WilB
Title: YouTube Track Manager
Post by: WilB on 16 November, 2015, 01:02:01 PM
    New  Version: YouTube Track Manager 2.2

    Minor bug fixes.

    See 2 posts above (#70) for requirements.

   
Title: YouTube Track Manager
Post by: WilB on 08 January, 2016, 01:10:31 PM
New Version: YouTube Track Manager 2.3

[/li][li]Improved smooth      scrolling and scrollbar. [/li][li]Added mouse wheel option of page or standard 3 line scrolling (page      = default; change in panel properties). [/li][li]Panel now      mostly uses left button single click actions (rather than double click) so      that it works the same way as library tree and album list type panels. [/li][li]Added custom      colour options to panel properties: presets to auto fade & blend      colours plus ability to set all colours individually. [/li][li]Added      ability to zoom the font size: use mouse-over with CTRL + mouse wheel.      Base font size is set with DUI or CUI list font, as before. Changing the UI list font size      resets the zoom. Button size can still be zoomed in same way. Zoom      settings for both font and button sizes are now grouped & previous      button size property removed. [/li][li]Library radio –      nowplaying panel now reports the number of matching tracks found in the      library, and thus the pool size that is being used for the radio. [/li][li]Improved search      focus handling. [/li][li]yT button now      fades when now playing panel is in image only mode (it's always top      right). [/li][li]Improved      properties format; this only affects *USER properties. The script will      automatically copy over previous *USER property values. Export previous      before updating, if you need a record or have made complex changes [/li][/list] YouTube  Track Manager 2.3 requires:

[/li][li]JScript Panel      1.0.0 (https://github.com/19379/foo-jscript-panel/releases)      or better (WSH Panel Mod 1.6.1 or 1.6.2 or 1.6.3 can be used instead). [/li][li]foo_youtube (https://www.hydrogenaud.io/forums/index.php?showtopic=104379) 1.14.1+      (earlier versions will not work correctly). [/li][li]Optional      components: [/li][li]foo_playcount (http://www.foobar2000.org/components/view/foo_playcount). Recommended for        optimal performance of the media library radio. The media library radio        will also work best where you have a reasonable number of tracks to pick        from (nowplaying panel now reports the pool size used). [/li][li]m-TAGS (http://www.foobar2000.org/components/view/foo_tags) 1.12+.        Required to enable inclusion of media library tracks, with correct        grouping, in albums built by album manager. If the foobar2000\yttm\albums        folder is added as a monitored music folder in preferences\media library        the albums will show in the media library. This process can be        enabled/disabled at any time. Use "!!.tags"        (filename suffix) in library filters to identify the m-TAGS albums in the        media library etc. "View by folder structure" is also useful        (look under the initial letter of the artist). To view the original media        library, use "NOT %path% HAS !!.tags" in filters or        "*!!.tags" as an excluded file type in preferences\media        library. Enter all without the quotes. [/li][/list] [/li][/list] Installation:  Add a JScript Panel to the layout in the  usual way. Click the JScript panel (or right click and choose configure) to  open the editor. Use the tools button to import the YouTube Track Manager  script. Finally, it is recommended to optimise settings under foobar2000\preferences\shell  integration: (1) Uncheck "Bring to front when adding new files" to  ensure that foobar2000 does not grab focus away from other applications. (2) If  the default %path_sort% is present in "Sort incoming files by: ",  change it to something better like %album artist% - %album% - %tracknumber% -  %title% to ensure album tracks are loaded in the correct order.

Many  options are on the YouTube Track Manager right click menu. Other options are in  panel properties (accessed from the right click menu). See the readme for full  info.
Title: Re: YouTube Track Manager
Post by: widerock on 17 January, 2016, 08:06:09 PM
Could you support the streaming from radio swiss?
I'm listening the radio swiss jazz station from "http://stream.srg-ssr.ch/m/rsj/aacp_96".
But, the 'youtube track manager' panel doesn't update according to the songs played.

Thank you for the useful script.
Title: Re: YouTube Track Manager
Post by: zeremy on 21 January, 2016, 06:25:57 AM
Could you support the streaming from radio swiss?
I'm listening the radio swiss jazz station from "http://stream.srg-ssr.ch/m/rsj/aacp_96".
But, the 'youtube track manager' panel doesn't update according to the songs played.

Thank you for the useful script.


@WilB

Streams return fb.PlaybackLength -1 or 0.

Changing line 146 in script to 

if (fb.IsPlaying && fb.PlaybackLength <= 0) return fb.TitleFormat(n).Eval();

in the this.eval function seems to fix the problem.
Title: Re: YouTube Track Manager
Post by: zeremy on 21 January, 2016, 07:41:27 AM
I just noticed this is the upload forum and I can't edit my previous post. :-[
You should create a separate discussion thread for YouTube Track Manager according to the Forum usage guidelines.
Title: Re: YouTube Track Manager
Post by: WilB on 21 January, 2016, 09:28:07 AM
Thanks I already worked out the radio stream issue. I am not sure about creating a new thread. In the very first post a suitable discussion thread was identified since a closely allied one already existed and I was aware of the guidelines, but everybody posted here. Also posts are editable since I just edited this... A mod could move the whole YouTube Track Manager thread to third party plug-ins to keep everything in one place I suppose.
Title: Re: YouTube Track Manager
Post by: WilB on 21 January, 2016, 01:13:39 PM
New Version: YouTube Track Manager 2.4

- Updated for compatibility with JScript Panel 1.1.0+
- Fixed minor redraw issues with album manager
- Fixed edge case radio stream handling
- Requires JScript Panel 1.1.0+, foo_youtube 1.14.1+ and optionally playback statistics 3.02+ + m-TAGS (foo_tags) 1.12+

I decided to create a separate discussion thread and all discussion should now go here. (https://hydrogenaud.io/index.php/topic,111059/topicseen.html).
Title: Re: YouTube Track Manager
Post by: WilB on 28 January, 2016, 07:50:37 AM
New Version: YouTube Track Manager 2.5

Requires JScript Panel JScript Panel 1.1.0+ (https://github.com/19379/foo-jscript-panel/releases),  foo_youtube 1.14.1+ (https://hydrogenaud.io/index.php/topic,104379.0.html) and optionally playback statistics 3.02+ (http://www.foobar2000.org/components/view/foo_playcount) & m-TAGS 1.12+ (https://hydrogenaud.io/index.php/topic,97164.0.html).

Please post discussion here (https://hydrogenaud.io/index.php/topic,111059.0.html)
Title: Re: YouTube Track Manager
Post by: WilB on 30 January, 2016, 01:32:29 PM
New Version: YouTube Track Manager 2.6

For requirements, see post above
Title: Re: YouTube Track Manager
Post by: WilB on 10 February, 2016, 12:07:19 PM
New Version: YouTube Track Manager 2.7

For requirements, see two posts above
Title: Re: YouTube Track Manager
Post by: WilB on 15 April, 2016, 11:19:17 AM
New Version: YouTube Track Manager 2.8

For requirements, see three posts above
Title: Re: YouTube Track Manager
Post by: WilB on 31 May, 2016, 08:07:22 AM
New Version: YouTube Track Manager 2.9

Requirements are unchanged from four posts above, except for upgrading to latest version of foo_youtube.dll.
Title: Re: YouTube Track Manager
Post by: WilB on 01 June, 2016, 01:46:56 PM
New Version: YouTube Track Manager 3.0

Requirements are unchanged from five posts above, except upgrading to latest version of foo_youtube.dll is recommended.
Title: How to "ban" some tracks from local library ?
Post by: YOGAM on 04 September, 2016, 07:46:49 AM
Hi,
This script is just terrific. Thanks a lot for this !

However I have a problem : my music collection includes many bootlegs (unofficial live recordings). When I create an "artist radio" or a "Top 50" playlist, very often YouTube Track Manager select tracks from these bootlegs instead of regular studio versions.
Does anyone know if there is a way I can avoid this ?

NB ; All my bootegs albums are tagged this way :
%album% = "boot - (year) - (album title)"  
%BOOT% = "bootleg"
Title: Re: YouTube Track Manager
Post by: WilB on 04 September, 2016, 12:09:38 PM
^ Done - see technical changes here (https://hydrogenaud.io/index.php/topic,111059.msg927734.html#msg927734)

New Version: YouTube Track Manager 3.1

Requires JScript Panel 1.1.0+ (https://github.com/19379/foo-jscript-panel/releases),  foo_youtube 1.17.1+ (https://hydrogenaud.io/index.php/topic,104379.0.html) and optionally playback statistics 3.02+ (http://www.foobar2000.org/components/view/foo_playcount) & m-TAGS 1.12+ (https://hydrogenaud.io/index.php/topic,97164.0.html).

Please post discussion here (https://hydrogenaud.io/index.php/topic,111059.0.html)
Title: Re: YouTube Track Manager
Post by: WilB on 17 October, 2016, 06:59:56 PM
New Version: YouTube Track Manager 3.2

Requirements are unchanged from the above post
Title: Re: YouTube Track Manager
Post by: WilB on 04 November, 2016, 06:35:10 PM
New Version: YouTube Track Manager 3.2

Requirements are unchanged from two posts above
Title: Re: YouTube Track Manager
Post by: WilB on 07 November, 2016, 07:25:06 AM
New Version: YouTube Track Manager 3.4

CHANGELOG

Fixed regression in button mode. If you use button mode, please use this version.

Requirements are unchanged from three posts above.
Title: Re: YouTube Track Manager
Post by: WilB on 11 November, 2016, 05:18:09 PM
New Version: YouTube Track Manager 3.5

Requirements are unchanged from four posts above.
Title: Re: YouTube Track Manager
Post by: WilB on 05 December, 2016, 12:51:34 PM
New Version: YouTube Track Manager 3.6

Please note the updated requirements for JScript panel & foo_youtube.

Requires JScript Panel 1.1.6.2+ (https://github.com/19379/foo-jscript-panel/releases), foo_youtube_preconf 1.17.3+ (https://hydrogenaud.io/index.php/topic,104379.0.html) (recommended *) and optionally playback statistics 3.02+ (http://www.foobar2000.org/components/view/foo_playcount) & m-TAGS 1.12+ (https://hydrogenaud.io/index.php/topic,97164.0.html).

* foo_youtube_preconf 1.17.3+, or standalone foo_youtube 1.17.3+ with LAVFilters, is required to enable the nowplaying panel to show YouTube videos. If you don't want video show, any functional foo_youtube.dll can be used.

Please post discussion here (https://hydrogenaud.io/index.php/topic,111059.0.html).
Title: Re: YouTube Track Manager
Post by: WilB on 08 December, 2016, 02:53:44 PM
New Version: YouTube Track Manager 3.7

Requirements are unchanged from post above.
Title: Re: YouTube Track Manager
Post by: MojoBass on 17 December, 2016, 01:26:44 AM
I tried to play with the Regex expressions for the Youtube 'Live' Filter. As I understand, the regex expressions for the title or the description under "ADV.YouTube 'Live' Filter Title" and "ADV.YouTube 'Live' Filter Description" exclude the matched youtube titles from the playlist. I guess that would mean that typing [a-zA-Z] in both fields would exclude basically all youtube tracks. However, I did not see any change in the Radio track list (for example when searching for Chaka Khan | Ain't Nobody). I am not sure if that behavior is due to the auto-disable if searching YouTube requires a keyword - I don't really know in which cases YT requires a keyword... It is as well not clear to me what is meant by the suggestion to check keywords with the album list filter.
 Any just another question: is it possible to copy the full list of the radio songs (e.g. 125 titles) in one instance to a playlist?

Still apprechiate your work very much!!
Title: Re: YouTube Track Manager
Post by: WilB on 11 February, 2017, 12:00:36 PM
New Version: YouTube Track Manager 3.8

Requires JScript Panel 1.1.6.2+ (http://www.foobar2000.org/components/view/foo_jscript_panel), foo_youtube_preconf 1.18.1+ (https://hydrogenaud.io/index.php/topic,104379.0.html) (recommended - see reply #90) and optionally playback statistics 3.02+ (http://www.foobar2000.org/components/view/foo_playcount) & m-TAGS 1.12+ (https://hydrogenaud.io/index.php/topic,97164.0.html).

Please post discussion here (https://hydrogenaud.io/index.php/topic,111059.0.html).
Title: Re: YouTube Track Manager
Post by: WilB on 15 February, 2017, 04:11:34 PM
New Version: YouTube Track Manager 3.8.1

Requirements are as above.
Title: Re: YouTube Track Manager
Post by: WilB on 19 March, 2017, 01:29:30 PM
New Version: YouTube Track Manager 3.9

Requirements are as two posts above except foo_youtube_preconf 1.18.2+ (https://hydrogenaud.io/index.php/topic,104379.0.html) is now recommended .
Title: Re: YouTube Track Manager
Post by: WilB on 28 March, 2017, 01:14:10 PM
New Version: YouTube Track Manager 3.9.1

Requirements are unchanged.
Title: Re: YouTube Track Manager
Post by: WilB on 26 July, 2017, 01:45:57 PM
New Version: YouTube Track Manager 3.9.2

Requires JScript Panel 1.1.6.2+ (http://www.foobar2000.org/components/view/foo_jscript_panel), foo_youtube_preconf 2.0+ (https://hydrogenaud.io/index.php/topic,104379.0.html) (recommended - see reply #90) and optionally playback statistics 3.02+ (http://www.foobar2000.org/components/view/foo_playcount) & m-TAGS 1.12+ (https://hydrogenaud.io/index.php/topic,97164.0.html).

Please post discussion here (https://hydrogenaud.io/index.php/topic,111059.0.html).
Title: Re: YouTube Track Manager
Post by: WilB on 24 August, 2017, 10:36:05 AM
New Version: YouTube Track Manager 3.9.3

Requirements are unchanged from the previous post.
Title: Re: YouTube Track Manager
Post by: WilB on 24 August, 2017, 02:08:32 PM
New Version: YouTube Track Manager 3.9.3.1

Requirements are unchanged from post #97.
Title: Re: YouTube Track Manager
Post by: WilB on 27 August, 2017, 11:32:47 AM
New Version: YouTube Track Manager 3.9.3.2

Requirements are unchanged from post #97.