HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: regor on 2021-05-13 11:41:09

Title: Playlist-Manager-SMP
Post by: regor on 2021-05-13 11:41:09
Playlist-Manager-SMP (https://github.com/regorxxx/Playlist-Manager-SMP)
(https://img.shields.io/github/release/regorxxx/Playlist-Manager-SMP.svg?include_prereleases) (https://github.com/regorxxx/Playlist-Manager-SMP/blob/main/CHANGELOG.md)(https://www.codefactor.io/repository/github/regorxxx/Playlist-Manager-SMP/badge/main) (https://www.codefactor.io/repository/github/regorxxx/Playlist-Manager-SMP/overview/main)(https://api.codacy.com/project/badge/Grade/329cf09cbffc46618a64d04e51f32011) (https://www.codacy.com/gh/regorxxx/Playlist-Manager-SMP/dashboard?utm_source=github.com&utm_medium=referral&utm_content=regorxxx/Playlist-Manager-SMP&utm_campaign=Badge_Grade)(https://img.shields.io/github/license/regorxxx/Playlist-Manager-SMP) (https://github.com/regorxxx/Playlist-Manager-SMP/blob/main/LICENSE)
A playlist manager for foobar2000 and Spider Monkey Panel (https://theqwertiest.github.io/foo_spider_monkey_panel) to save and load (auto)playlists on demand, synchronizing, ... along many more utilities.

(https://user-images.githubusercontent.com/83307074/116749102-f8b7b900-a9ef-11eb-9054-08fcb349813d.gif)

Features

(https://user-images.githubusercontent.com/83307074/116749322-4d5b3400-a9f0-11eb-9e55-cdd91370f624.gif)


(https://user-images.githubusercontent.com/83307074/116749095-f6555f00-a9ef-11eb-9723-7229766bed90.gif)

Current limitations
.fpl playlists (native format) are read only and can not be autosaved since the format is closed source and there are no methods on  Spider Monkey Panel (https://theqwertiest.github.io/foo_spider_monkey_panel) to save them on a path (without showing the 'save as' window), neither load them as handle lists (without loading on playlist tabs, for example to update the track count).
Whenever that changes, I will add full support for .fpl, and end pre-release state.

Also integrates
 1. Menu-Framework-SMP (https://github.com/regorxxx/Menu-Framework-SMP): Helper which allows to easily create customizable and dynamic menus.

Installation
Copy all files from the zip into YOUR_FOOBAR_PROFILE_PATH\scripts\SMP\xxx-scripts
Any other path WILL NOT work without editing the scripts. (see images_Installation_*jpg)
For ex: mine is c:\Users\xxx\AppData\Roaming\foobar2000\scripts\SMP\xxx-scripts...
For portable installations >= 1.6: .\foobar2000\profile\scripts\SMP\xxx-scripts...
For portable installations <= 1.5: .\foobar2000\scripts\SMP\xxx-scripts...
Then load 'playlist_manager.js' into a SMP panel within foobar.

Download latest release (or nightly releases) at github:
https://github.com/regorxxx/Playlist-Manager-SMP
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-05-18 17:42:39
Following a github suggestion, have been working on relative paths support for playlist and it should be ready on the next pre-release along these changes.

- Additional checks for portable installations.
- Relative Paths: playlists can now be saved with paths relative to the playlist folder.
- New menu to change playlist extension.
- New menu to relative/abs path config.
- Playlist loading is done using cache matching any of both absolute and relative path playlists, independently of configuration (for saving).
- Fpl playlist data (like tags, size or category) is now saved between sessions (removing some of the intrinsic limitations of the closed format).
- Multiple info popups at some points when working with fpl and pls playlists for the first time.
- Using pls format disables UUIDs menu and forces UUID refresh to none for consistency.
- Using pls format disables some menus for editing data (pls format doesn't allow extra comments).
- Changed the background text when filtering the lists and # items was 0. (previously it showed the default text)
- Multiple bugfixes for fpl and pls file edits.
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-05-19 20:07:35
[0.2.2] - 2021-05-19 (https://github.com/regorxxx/Playlist-Manager-SMP)
### Added
- Portable: Additional checks for portable installations.
- Relative Paths: playlists can now be saved with paths relative to the playlist folder.
- Menu: entry to change playlist extension.
- Menu: entry to relative/abs path config.
- Menu: different tools to check for errors (absolute/relative paths mixing, dead items on playlist files, etc.)
- Fpl playlist data (like tags, size or category) is now saved between sessions (removing some of the intrinsic limitations of the closed format).
- Multiple info popups at some points when working with fpl and pls playlists for the first time.
### Changed
- Bugfix: All data arrays get updated on playlist saving/editing (previously only displayed data was updated, leading to some display bugs).
- Bugfix: Multiple bugfixes for fpl and pls file edits.
- Helpers: Playlist loading is done using cache for both absolute and relative path playlists, independently  of configuration (for saving).
- Using pls format disables UUIDs menu and forces UUID refresh to none for consistency.
- Using pls format disables some menus for editing data (pls format doesn't allow extra comments).
- Changed the background text when filtering the lists and # items was 0. (previously it showed the default text).
- Playlist loading should be much faster after the first time all libray paths have been cached, since that was the main culprit of loading time (+1 sec for 70k tracks).
### Removed
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-05-24 17:02:30
Just pushed a few updates you can try until I create a new pre-release. Categories are finally used to filter the playlist panel and not only as info on tooltips. Tags remain for relevant info-only data you may want to add to any playlist file.

## [Unreleased] (Download from repository not from the releases) (https://github.com/regorxxx/Playlist-Manager-SMP)
### Added
- Menu: tool to check for size mismatch. Compares # paths against size tag on files for .m3u8, .m3u or .pls. Also reports playlist files without those tags.
- Menu: New header menu invoked with R. Click at the top of the panel.
- Menu: Show/hide shortcuts info on tooltips.
- Filter: Playlist may now be filtered by category, multiple selection allowed in a menu.
- Filter: If lists are being filtered by category, an indicator is shown in the header text.
- Tooltip: Tooltip for header with complete path, current category filter and shortcuts info.
- Tooltip: Tooltip for playlists with shortcuts info.
- Shortcut: Shift + Click sends current selection directly to playlist file (without needing to load it first).
### Changed
- Shortcut: Shift + Ctrl + Click deletes selected playlist. (previously it was assigned to Shift).
- Menu: Config menus (R. Click) moved to header menus. For consistency now all contextual menus related to the playlists are invoked within the list, and the rest at the top.
- Menu framework: updated.
### Removed
### Fixed
- Deleting a playlist while pressing shift no longer deletes it without sending the file to the recycle bin (for later restoring). It matches menu behavior now.
- Selection indicator not being removed when moving mouse from list to header.

X

X

X

X
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-05-26 20:49:27
## [0.3.0] - 2021-05-26 (https://github.com/regorxxx/Playlist-Manager-SMP)
### Added
- Menu: tool to check for size mismatch. Compares # paths against size tag on files for .m3u8, .m3u or .pls. Also reports playlist files without those tags.
- Menu: New header menu invoked with R. Click at the top of the panel.
- Menu: Show/hide shortcuts info on tooltips.
- Filter: Playlist may now be filtered by category, multiple selection allowed in a menu.
- Filter: If lists are being filtered by category, an indicator is shown in the header text.
- Tooltip: Tooltip for header with complete path, current category filter and shortcuts info.
- Tooltip: Tooltip for playlists with shortcuts info.
- Shortcut: Shift + Click sends current selection directly to playlist file (without needing to load it first).
### Changed
- Shortcut: Shift + Ctrl + Click deletes selected playlist. (previously it was assigned to Shift).
- Menu: Config menus (R. Click) moved to header menus. For consistency now all contextual menus related to the playlists are invoked within the list, and the rest at the top.
- Menu framework: updated.
### Removed
### Fixed
- Deleting a playlist while pressing shift no longer deletes it without sending the file to the recycle bin (for later restoring). It matches menu behavior now.
- Selection indicator not being removed when moving mouse from list to header.
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-05-28 13:03:10
Since the latest pre-release already supports sending tracks to a playlist file without loading it, I'm considering adding some integration with Playlist-Tools-SMP (https://hydrogenaud.io/index.php?topic=120978.msg998340;topicseen#new) to create a pools utility.

Playlist tools already can do anything random pools component does (creating pools with queries), but I'm thinking about using pre-set playlists as sources. It will be available on the next release for loaded playlists on foobar, but I want to expand it to playlist files within any instance of a Playlist Manager.

That way it should be pretty easy to have some dummy 'container' playlists where you collect tracks by moods, occasion, whatever, ... (using Shift + Click which sends current selection directly to playlist file without loading it first). And then use the other script to use those 'container' playlists as source pools for a final playlist. The point of this approach is not having those dummy playlists always loaded on foobar cluttering the UI (using macros already allow this, but you have to add select/close playlist steps).

Finally, that should also work along Search-by-Distance-SMP (https://github.com/regorxxx/Search-by-Distance-SMP). Since I wanted to use some 'container' playlist as source to create playlists on the fly with similar tracks to a given set (thus integrating all MusicIP (https://spicefly.com/article.php?page=what-is-musicip) functionality).
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-05-28 21:54:15
## [0.3.1] - 2021-05-28 (https://github.com/regorxxx/Playlist-Manager-SMP)
### Added
- Menu: entry on header menu to reset all categories shown.
### Changed
- Menu framework: updated.
### Removed
### Fixed
- Changing extension to .pls did not update the UUID to "nothing".
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-06-07 19:32:21
v0.4.0 - File restructuring and cleanup (https://github.com/regorxxx/Playlist-Manager-SMP)
Maintenance release for better compatibility with other repositories.

## [0.4.0] - 2021-06-07
### Added
### Changed
- Helpers: Moved all SMP scripts without UI (those not meant to be loaded directly on panels) to 'main'.
- Helpers: Split 'helpers_xxx.js' file into multiple ones for easier future maintenance.
### Removed
### Fixed
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-06-15 17:37:07
v0.4.1 - Playlist Tools integration (https://github.com/regorxxx/Playlist-Manager-SMP)
See changelog for all changes.

    Playlist manager integration for pools. They will use playlists tracked by this manager as source is set to do so.
    Custom color improvements (standard text included).
    Minor improvements.

(*) Recommended to update all other scripts (Playlist Tools, Search by Distance, World Map) too. There have been major changes on those.


## [0.4.1] - 2021-06-15
### Added
- Integration: Listeners to share tracked playlist path with other panels (use 'window.NotifyOthers('Playlist manager: playlistPath', null)'). Used on [Playlist-Tools-SMP](https://github.com/regorxxx/Playlist-Tools-SMP) to use tracked playlist files as source for pools. i.e. Playlist A would match first a playlist within foobar with same name, then a playlist file with matching '#PLAYLIST:Playlist A' tag and finally any playlist file named 'Playlist A.m3u8'. Autoplaylists are excluded (use queries instead) and fpl files too. This feature allows to use virtual playlists as containers, where you can easily collect tracks (since Playlist Manager allows to send tracks directly to a file without loading it) to be used later on pools without polluting the UI with tons of dummy playlists.
- Colors: added menu option to change standard text color, switchange between CUI\DUI color or custom one.
### Changed
- Portable: when properties are set for the first time, now use relative paths on profile folder for portable installations (>= 1.6).
- Integration: Moved some functions to 'playlist_manager_helpers.js' to easily integrate others scripts with the playlists objects.
- Data: json file for playlists is now formatted to be readable.
- Colors: background color menu moved to 'Set custom colour...' submenu. Now all colour options reside in the same submenu.
- Buttons framework: skip icon drawing if font is not found.
- Buttons: icons to all buttons.
- Helpers: warn about missing font on console if trying to load a font and is not found.
### Removed
### Fixed
- Colors: panel did not repaint with default color values in some cases after using 'Reset all to default' entry.
- Avoid 2 possible crashes when playlist json files get corrupted. Warns about it whit a popup (to restore a backup).
Title: Re: Playlist-Manager-SMP
Post by: Koshingg on 2021-06-25 18:52:01
regor, after a period without using foobar , I tested the latest scripts and I have errors in console , they keep appearing (obviously I have the font wingdings 2 installed)
[17:03:00] Missing font: wingdings 2
[17:03:01] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:06] Missing font: wingdings 2
[17:03:06] Missing font: wingdings 2
[17:03:07] Missing font: wingdings 2
[17:03:07] Missing font: wingdings 2
[17:03:07] Missing font: wingdings 2
[17:03:07] Missing font: wingdings 2
Also , when I add a playlist from a json file (I was using Auto-playlist Manager by marc2003, and I had 3 auto playlists), one auto playlist is imported indeed [These are de values used for the auto playlist --- Query pattern : %last_played% DURING LAST 57 WEEKS AND %play_count% GREATER 1  and---Sort pattern : $sub(99999,%play_count%)  --this works ]
But the other 2 auto playlists are not imported, and 2 error reports appear.
For auto playlist number 2, I have this error : "Query not valid:
ALL SORT DESCENDING BY %file_created%"  .
For auto playlist number 3, I have this error : ''Query not valid:
ALL SORT DESCENDING BY "$date(%added%)"
Obviously these 2 auto playlists are ok when I use the auto-playlist Manager by marc2003 or when I create auto playlists in foobar, they don t work here, I don't know why

I used the last version of the scripts, portable Foobar 1.6.6 , clean install, only SMP ( vers. 1.4.1) installed (Windows 10, 20H2)
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-06-26 11:54:49
regor, after a period without using foobar , I tested the latest scripts and I have errors in console , they keep appearing (obviously I have the font wingdings 2 installed)
[17:03:00] Missing font: wingdings 2
[17:03:01] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:02] Missing font: wingdings 2
[17:03:06] Missing font: wingdings 2
[17:03:06] Missing font: wingdings 2
[17:03:07] Missing font: wingdings 2
[17:03:07] Missing font: wingdings 2
[17:03:07] Missing font: wingdings 2
[17:03:07] Missing font: wingdings 2
I used the last version of the scripts, portable Foobar 1.6.6 , clean install, only SMP ( vers. 1.4.1) installed (Windows 10, 20H2)

The first was reported on github. Not sure if it was you!
It's already fixed, was a typo on my side. It's Wingdings. But the icon works without problems even with the default font.

Quote
Also , when I add a playlist from a json file (I was using Auto-playlist Manager by marc2003, and I had 3 auto playlists), one auto playlist is imported indeed [These are de values used for the auto playlist --- Query pattern : %last_played% DURING LAST 57 WEEKS AND %play_count% GREATER 1  and---Sort pattern : $sub(99999,%play_count%)  --this works ]
But the other 2 auto playlists are not imported, and 2 error reports appear.
For auto playlist number 2, I have this error : "Query not valid:
ALL SORT DESCENDING BY %file_created%"  .
For auto playlist number 3, I have this error : ''Query not valid
Will recreate them and try. It may have something to do with the Descending/ascending part. Should be fixed on next release, since the idea is the playlist manager should be 100% compatible with marc2003's one, and replace it. That's why there is the import thing.
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-06-26 13:02:36
Well the problem was query testing.
I test the queries before allowing users to add a new autoplaylist (to avoid errors or crashes if you put something wrong), to do it I use a function which doesn't allow 'SORT' commands on that context, only standard queries.

Spoiler (click to show/hide)

marc2003's script allows you to put anything on the query input without checking it. Crashes for some inputs and if it fails at playlist creation, it doesn't tell you why.

Spoiler (click to show/hide)

So whether you try to create a new autoplaylist or import one with those (SORT) commands, it will fail on my panel. There is no workaround around that since it's a limitation of SMP (GetQueryItems(handle_list, query) ). I will ask the author about a possible new function which checks all. But I will not disable query testing, since I find really weird to be able to crash the entire panel with a typo. Queries should always be tested.

I can perform query testing only for the string part just before SORT, that should work and be a good compromise between testing queries and allowing SORT on them. And that would fix the importing problem.
Title: Re: Playlist-Manager-SMP
Post by: Koshingg on 2021-06-26 16:27:22

"The first was reported on github. Not sure if it was you!"

No, it wasn't me :)

Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-06-26 21:11:09
The query and font bugs (along some minor improvments) should be solved if you download the latest files from the repository (not release, but the files directly). The changelog is updated there.
Queries with SORTED BY patterns should now be allowed, and checked for errors too (at least partially).

Try re-importing the json :)

Quote
No, it wasn't me :)
Just a coincidence then, I get notifications from github so I read reports there first.
Title: Re: Playlist-Manager-SMP
Post by: Koshingg on 2021-06-27 02:12:12
I downloaded the latest files, now I don't have the font bug, but when I tried to import the json this time no playlist is imported, and  no error reports appear
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-06-27 16:58:19
I can't reproduce your problem, it works fine on my side (tried with +20 playlists, with queries and SORT mixed in may ways).

Could you share your json file? Unless is something related to your file, it must be a config thing on your side.

Also, are you sure you don't have filtering enabled? (like only showing standard playlists!)
Title: Re: Playlist-Manager-SMP
Post by: Koshingg on 2021-06-27 20:15:07
regor, it works. Yesterday I tried 10 times, I think , but no result appeared, I even removed the panel , reloaded the script... but today after a windows restart everything ok. Sorry for the false alarm
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-06-27 20:24:04
Don't worry, thanks for your reports :)
Title: Re: Playlist-Manager-SMP
Post by: jotti on 2021-07-12 16:51:14
Hi Regor,
is there a way to automatically add playlists from the playlist_manager panel to the main foobar playlist container? (the "load" action, when you manually click on them)

(My aim is to make the new playlist files added to a specific folder reachable through the foobar upnp server, which apparently doesn't detect the playlist listed in the playlist_manager panel, but only those in the main list. But this have to be done automatically. Here (https://www.reddit.com/r/foobar2000/comments/oim3n0/how_to_automatically_import_playlists_from_a/), someone suggested that maybe with your component this could be done...)
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-07-12 18:25:58
Hi Regor,
is there a way to automatically add playlists from the playlist_manager panel to the main foobar playlist container? (the "load" action, when you manually click on them)

(My aim is to make the new playlist files added to a specific folder reachable through the foobar upnp server, which apparently doesn't detect the playlist listed in the playlist_manager panel, but only those in the main list. But this have to be done automatically. Here (https://www.reddit.com/r/foobar2000/comments/oim3n0/how_to_automatically_import_playlists_from_a/), someone suggested that maybe with your component this could be done...)
Currently nope. With the future Playlist Tools release, it should be possible to perform some actions using dummy tracks (names would be commands) if you also have that script.

If I understand your usage, you want to have all playlist from a tracked folder automatically loaded on foobar? Or just specific playlists?
Also according to what condition? At startup? On demand (not easy at all since it requires some integration with the remote control)?

Since there is currently a playlist tag feature implemented, I could add a config option to add a "Load on Startup" tag (or custom tags) to every new playlist added to the tracked folder.
Then I could make the panel to check tags and perform automatic actions according to those tags. That should cover both cases: you could have a panel associated to a folder with automatic tagging and loading, and another without it.
Title: Re: Playlist-Manager-SMP
Post by: jotti on 2021-07-12 23:32:16
Thank you Regor!

If I understand your usage, you want to have all playlist from a tracked folder automatically loaded on foobar? Or just specific playlists?
Also according to what condition? At startup? On demand (not easy at all since it requires some integration with the remote control)?
Yes, ALL the playlists from a tracked folder loaded on foobar. According to no specific condition: as soon as they are added to the folder would be the best way for the usage I have in mind. But at foobar startup would do as well.

Since there is currently a playlist tag feature implemented, I could add a config option to add a "Load on Startup" tag (or custom tags) to every new playlist added to the tracked folder.
Then I could make the panel to check tags and perform automatic actions according to those tags. That should cover both cases: you could have a panel associated to a folder with automatic tagging and loading, and another without it.
That sounds perfect, I think it could work just fine!

Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-07-13 12:15:42
Thank you Regor!

If I understand your usage, you want to have all playlist from a tracked folder automatically loaded on foobar? Or just specific playlists?
Also according to what condition? At startup? On demand (not easy at all since it requires some integration with the remote control)?
Yes, ALL the playlists from a tracked folder loaded on foobar. According to no specific condition: as soon as they are added to the folder would be the best way for the usage I have in mind. But at foobar startup would do as well.

Since there is currently a playlist tag feature implemented, I could add a config option to add a "Load on Startup" tag (or custom tags) to every new playlist added to the tracked folder.
Then I could make the panel to check tags and perform automatic actions according to those tags. That should cover both cases: you could have a panel associated to a folder with automatic tagging and loading, and another without it.
That sounds perfect, I think it could work just fine!


Already got it working. Will update github asap.
Spoiler (click to show/hide)

The tag method is more complex than just automatically loading all playlists but I prefer this method because you can manually write that tag to the desired playlists... so only those are loaded (instead of all). Or just enable autotagging, and it will apply to all. So this allow fine grained control. (*)

(*) You can have multiple Playlist Manager panels to control that but if you only have one, you may have many different playlists there, even auto-playlists... probably it makes no sense to auto-load all of them. So some control is preferred.
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-07-15 21:54:11
Have updated the repository with all the latest changes (tags, autoload, etc.) and some bugfixes. If anyone want to test it, download the files directly from the repository not the releases.

(it's recommended to also download the latest files from the rest of my scripts, since I have changed all with major changes in Playlist Tools)

Changelog is up to date on github. Check unreleased.
Title: Re: Playlist-Manager-SMP
Post by: jotti on 2021-07-18 17:50:42
Hi Gregor,
I just updated the script from Github (just replacing all files and folders in xxx-scripts... Is this the right way? I'm new to Spider Monkey Panel...), but it doesn't load. I get this message:

Code: [Select]
Error: Spider Monkey Panel v1.5.1 (Playlist Manager: Playlist Manager v0.2 by XXX)
include failed:
Path does not point to a valid file: helpers\helpers_xxx.js

File: <main>
Line: 27, Column: 1
Stack trace:
  @:27:1
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-07-18 21:25:57
Hi Gregor,
I just updated the script from Github (just replacing all files and folders in xxx-scripts... Is this the right way? I'm new to Spider Monkey Panel...), but it doesn't load. I get this message:

Code: [Select]
Error: Spider Monkey Panel v1.5.1 (Playlist Manager: Playlist Manager v0.2 by XXX)
include failed:
Path does not point to a valid file: helpers\helpers_xxx.js

File: <main>
Line: 27, Column: 1
Stack trace:
  @:27:1

Yes, that's right. Does that file exist at (xxx-scripts)? If it's there, then it's a SMP bug. Update it to latest version (https://theqwertiest.github.io/foo_spider_monkey_panel/) (dev build). If it continues, another user had the same problem with relative paths, so please report it at the SMP thread in that case.
Title: Re: Playlist-Manager-SMP
Post by: jotti on 2021-07-19 21:58:23
Yes, the file is there (in xxx-scripts\helpers), and the bug still appears even with the last SMP version.
But if it affects just me I can patiently wait for the next versions, where it hopefully will be fixed...

(Not sure where I should report this bug, anyway... Here (https://github.com/TheQwertiest/foo_spider_monkey_panel/issues?q=path) I can't find any (recent / open) thread referring to this issue. Do you mean this one (https://github.com/TheQwertiest/foo_spider_monkey_panel/issues/142)? I'm a bit lost when it comes to coding and stuff...)
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-07-19 22:09:58
At its thread or github (your link):
https://hydrogenaud.io/index.php?topic=116669.0

Have no idea what's going on, since it works on my side on win 10 and win 7 pcs but another user had problems at win 7.
Title: Re: Playlist-Manager-SMP
Post by: jotti on 2021-07-19 22:18:14
Oh, I see that you've already reported it, thanks.
By the way, I'm on win 10.
Title: Re: Playlist-Manager-SMP
Post by: dreampillet on 2021-07-21 06:42:26
I was having this exact problem with the World Map script. The file is there but I get the same error message saying it doesn't point to valid file. For some reason, the release version of the script seems to work fine for me. I'm using Windows 10 as well.
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-07-24 20:53:38
Have updated the repository with a new feature to automatically add tags to tracks added to playlists (see changelog) with TF expressions, a set value or JS functions.This:
https://hydrogenaud.io/index.php?topic=121331.msg1001055;topicseen#new
Also an important bugfix on autosaving (not applying on filtered playlists).

If anyone want to test it, download the files directly from the repository not the releases. Please have in mind the relative path bug on SMP has not been solved yet, so I have no idea if it will work for you!
(it's recommended to also download the latest files from the rest of my scripts in that case, since I have changed all with major changes)
Title: Re: Playlist-Manager-SMP
Post by: Koshingg on 2021-07-29 17:56:33
regor, I followed your steps from here https://hydrogenaud.io/index.php?topic=121331.msg1001029#msg1001029 but automatically adding tags to tracks added to playlists it's not working for me . Either it's a bug or I'm doing something wrong http://sendanywhe.re/AR38O8Y7
Title: Re: Playlist-Manager-SMP
Post by: architekt on 2021-07-30 20:17:13
This plugin is awesome! 1 minor detail that took me a while to figure out though. I specified my playlist path as this: "D:\Google Drive\Music\Default". It kept saying it couldn't find any playlists, which made no sense since when I had it open said folder, I saw all my .m3u8 files. Then I tried adding a trailing slash, so I made it: "D:\Google Drive\Music\Default\" and that fixed it. Would it be possible to check if the last character includes the slash, and if not, just append it? Or perhaps make mention of that in the info panel as part of the can't find any playlists standard message that otherwise populates it? Great work btw, this is exactly what I needed.
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-08-01 18:49:16
This plugin is awesome! 1 minor detail that took me a while to figure out though. I specified my playlist path as this: "D:\Google Drive\Music\Default". It kept saying it couldn't find any playlists, which made no sense since when I had it open said folder, I saw all my .m3u8 files. Then I tried adding a trailing slash, so I made it: "D:\Google Drive\Music\Default\" and that fixed it. Would it be possible to check if the last character includes the slash, and if not, just append it? Or perhaps make mention of that in the info panel as part of the can't find any playlists standard message that otherwise populates it? Great work btw, this is exactly what I needed.
Yep, easy enough. That's a "problem" with paths at many places though, not only this script or that specific function. Will check the path inputs of most of my scripts to solve it.

Btw the latest SMP dev build (https://ci.appveyor.com/api/projects/theqwertiest/foo-spider-monkey-panel/artifacts/_result%2FWin32_Release%2Ffoo_spider_monkey_panel.fb2k-component?branch=master&job=Configuration%3A%20Release) seems to fix the relative paths bug, so I will update the github repositories with proper releases asap.

Quote
regor, I followed your steps from here https://hydrogenaud.io/index.php?topic=121331.msg1001029#msg1001029 but automatically adding tags to tracks added to playlists it's not working for me . Either it's a bug or I'm doing something wrong http://sendanywhe.re/AR38O8Y7
Can't see the link sorry. (you can attach gifs here too btw)
Title: Re: Playlist-Manager-SMP
Post by: Koshingg on 2021-08-01 19:48:25
Sorry, here is the gif
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-08-01 21:56:01
Sorry, here is the gif
You must use double quotes instead of ' x 2. That's how javascript json works. Do it and it should work ;)

And... I will try checking if the input uses ' and replacing it with " to avoid this. Or at least warn about it in the popup.

EDIT: last commit should replace ' ' with " automatically.
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-08-01 22:34:01
This plugin is awesome! 1 minor detail that took me a while to figure out though. I specified my playlist path as this: "D:\Google Drive\Music\Default". It kept saying it couldn't find any playlists, which made no sense since when I had it open said folder, I saw all my .m3u8 files. Then I tried adding a trailing slash, so I made it: "D:\Google Drive\Music\Default\" and that fixed it. Would it be possible to check if the last character includes the slash, and if not, just append it? Or perhaps make mention of that in the info panel as part of the can't find any playlists standard message that otherwise populates it? Great work btw, this is exactly what I needed.
After checking, I'm sorry to say that's something already checked if you use the menus. '\' is added at the end if you omit it. Either you are using a really old version or you added the playlist paths directly at properties (and therefore any path integrity check is user's responsibility).
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-08-02 18:44:22
Have updated the repository with a few fixes, the previous improvement with quotes and a few new tools to export playlists (copy playlist file to, copy playlist file +tracks, copy playlist file + convert tracks).
See this: https://hydrogenaud.io/index.php?topic=121367

After setting the DSP, output and TF filename expression, the playlist manager is fully integrated with foobar converter... allowing to export entire playlists (and maintain their order) in one click. Can be used as a 'one way sync' tool for portable players, etc.

Spoiler (click to show/hide)

I mixed the output of multiple exports steps in the same folder, but you get the idea...
Title: Re: Playlist-Manager-SMP
Post by: Koshingg on 2021-08-02 22:52:00
Thanks, it works now. Great new features , btw
Title: Re: Playlist-Manager-SMP
Post by: regor on 2021-08-03 10:17:49
Changed a bit the last convert feature to allow an arbitrary number of presets (instead of only 1). Also the list shows the DSP, TF and path (disk letter + folder name). I think it's much better now since it allows multiple outputs without needing to re-configure it or asking for user input every time.

Spoiler (click to show/hide)

* (DSP) and (FOLDER) means those var are set with user input instead of predefined.
SimplePortal 1.0.0 RC1 © 2008-2021