|
Post by patrick on May 27, 2020 15:27:58 GMT -5
Hello, so as a regular playlist can't be set as a rule in the Smartplaylist rules, I decided to write a Tasker Script which simply converts one or multiple regular Playlists (.m3u or .m3u8) into a equally named Smartplaylist (.spl). What it does: - Reads the chosen Playlist files - Creates an equally named Smartplaylist file in the gmmp smart folder containing the files from the Playlist How to use it: - Before first use fill in your Playlistpath into the %Playlistpath variable in taskers variable section - Run Start to choose the Playlists which shall be converted to Smartplaylist + convert them - Run Refresh to convert the before chosen Playlists again to Smartplaylists (in case you updated your Playlists) - If you want to choose other Playlists to convert to Smartplaylist simply run Start again I suggest to add the Tasks (Refresh and or Start) as a widget on homescreen to quickly acces these. I may add an Youtubevideo to show how it works (it's really simple). And don't bother it should detect if you've done something wrong and give an explanating error. Feel free to ask anything or suggest some improvements. I hope it's okay to post this here. Download: taskernet.com/shares/?user=AS35m8mHWurbtg0iB4O6w6zlCpXrhsHdA80dwKx85210KaA1N7rrNbLkCrgUf0jq3H63Kw%3D%3D&id=Project%3ASmartplaylistGreets
|
|
|
Post by GoneMAD on Jun 10, 2020 22:26:27 GMT -5
is this just converting a playlist into a smart playlist with a bunch of rules for each filename? if so there is going to be a size limitation at some point. Smart playlists are converted into sqlite queries which do have a size limitation. I would also imagine there could be performance implications if the playlist was large
|
|
|
Post by patrick on Jun 18, 2020 10:07:57 GMT -5
is this just converting a playlist into a smart playlist with a bunch of rules for each filename? if so there is going to be a size limitation at some point. Smart playlists are converted into sqlite queries which do have a size limitation. I would also imagine there could be performance implications if the playlist was large Yes it simply puts all filenames as a rule combined with an or condition. Do you know the exact size limitations?
|
|
|
Post by GoneMAD on Jun 18, 2020 13:12:29 GMT -5
1 million characters is the limit for a database query. So 1000000 / (length of full filename + roughly 20 characters) = max number of tracks. Assuming full file paths are between 80 - 180 characters you are looking at a limitation of 5000 to 10000 tracks
|
|
|
Post by patrick on Jun 20, 2020 8:42:34 GMT -5
1 million characters is the limit for a database query. So 1000000 / (length of full filename + roughly 20 characters) = max number of tracks. Assuming full file paths are between 80 - 180 characters you are looking at a limitation of 5000 to 10000 tracks Thanks for the info,that should be more than enough for most cases
|
|