Auto-Importing Playlists failed

Need help? Post your questions here.

Moderator: moderators

Auto-Importing Playlists failed

Postby kyomi7502 » Fri Oct 10, 2014 12:26 pm

License: Subsonic Premium
Version: 4.9 (build 3853) – January 23, 2014
Server: jetty-6.1.x, java 1.7.0_67, Windows 2003 (101.3 MB / 181.6 MB)
Last couple lines of the Subsonic log file:
Code: Select all
[10/10/14 3:00:29 AM EDT]    INFO   MediaScannerService   Marking non-present files.
[10/10/14 3:00:30 AM EDT]    INFO   MediaScannerService   Marking non-present artists.
[10/10/14 3:00:30 AM EDT]    INFO   MediaScannerService   Marking non-present albums.
[10/10/14 3:00:30 AM EDT]    INFO   MediaScannerService   Completed media library scan.
[10/10/14 3:00:30 AM EDT]    INFO   PlaylistService   Starting playlist import.
[10/10/14 3:00:31 AM EDT]    WARN   PlaylistService   Failed to auto-import playlist C:\subsonic\Playlists\All Music.m3u8. No songs in the playlist were found.
[10/10/14 3:00:31 AM EDT]    WARN   PlaylistService   Failed to auto-import playlist C:\subsonic\Playlists\Anime.m3u8. No songs in the playlist were found.
[10/10/14 3:00:31 AM EDT]    WARN   PlaylistService   Failed to auto-import playlist C:\subsonic\Playlists\C64 Remix.m3u8. No songs in the playlist were found.
[10/10/14 3:00:31 AM EDT]    WARN   PlaylistService   Failed to auto-import playlist C:\subsonic\Playlists\Dance & Trance.m3u8. No songs in the playlist were found.
[10/10/14 3:00:31 AM EDT]    WARN   PlaylistService   Failed to auto-import playlist C:\subsonic\Playlists\Dubstep.m3u8. No songs in the playlist were found.
[10/10/14 3:00:31 AM EDT]    WARN   PlaylistService   Failed to auto-import playlist C:\subsonic\Playlists\Gothic.m3u8. No songs in the playlist were found.

Does anyone know the format the playlists need to be in, in order for SS to import them automatically?
I tried out a batch file solution and it seemed to work for awhile.. but now it just errors out with the above error.

An excerpt of how the Gothic.m3u8 file looks:
Code: Select all
D:\shares\Music\Gothic\Mondträume\(2014) Empty\01 - Life Is Short.mp3
D:\shares\Music\Gothic\Mondträume\(2014) Empty\02 - Parasite.mp3
D:\shares\Music\Gothic\Mondträume\(2014) Empty\03 - Pyschodrug.mp3
D:\shares\Music\Gothic\Mondträume\(2014) Empty\04 - Broken Wings.mp3

I just created these files by using this batch file I created:
Code: Select all
@echo off
REM ***
REM Use cmd /u /c Generate_Playlists.cmd to run this batch file as a scheduled task.
REM ***
cls
REM echo Change codepage to Unicode to deal with special characters.
(
REM chcp 437
echo Cleaning out old Playlists
del /Q /F "c:\subsonic\Playlists\*"
echo Done.
echo.
echo.
echo Creating Playlists - Anime...
dir "D:\shares\Music\Anime"/a:-D /s /b > "C:\subsonic\Playlists\Anime.m3u8"
echo Creating Playlists - C64 Remix...
dir "D:\shares\Music\C64 Remix"/a:-D /s /b > "C:\subsonic\Playlists\C64 Remix.m3u8"
echo Creating Playlists - DanceTrance...
dir "D:\shares\Music\Dance & Trance"/a:-D /s /b > "C:\subsonic\Playlists\Dance & Trance.m3u8"
echo Creating Playlists - Dubstep...
dir "D:\shares\Music\Dubstep"/a:-D /s /b > "C:\subsonic\Playlists\Dubstep.m3u8"
echo Creating Playlists - Gothic...
dir "D:\shares\Music\Gothic"/a:-D /s /b > "C:\subsonic\Playlists\Gothic.m3u8"
echo Creating Playlists - Industrial...
dir "D:\shares\Music\Industrial"/a:-D /s /b > "C:\subsonic\Playlists\Industrial.m3u8"
echo Creating Playlists - Japanese...
dir "D:\shares\Music\Japanese"/a:-D /s /b > "C:\subsonic\Playlists\Japanese.m3u8"
echo Creating Playlists - Metal...
dir "D:\shares\Music\Metal"/a:-D /s /b > "C:\subsonic\Playlists\Metal.m3u8"
echo Creating Playlists - Misc...
dir "D:\shares\Music\Misc"/a:-D /s /b > "C:\subsonic\Playlists\Misc.m3u8"
echo Creating Playlists - Rock...
dir "D:\shares\Music\Rock"/a:-D /s /b > "C:\subsonic\Playlists\Rock.m3u8"
echo Creating Playlists - Soundtracks - Game...
dir "D:\shares\Music\Soundtracks\Game"/a:-D /s /b > "C:\subsonic\Playlists\Soundtracks - Game.m3u8"
echo Creating Playlists - Soundtracks - TVMovie...
dir "D:\shares\Music\Soundtracks\TV & Movie"/a:-D /s /b > "C:\subsonic\Playlists\Soundtracks - TV&Movie.m3u8"
echo Done creating genre Playlists.
echo.
echo.
echo Creating All Music playlist
echo Adding Anime...
type "C:\subsonic\Playlists\Anime.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Adding C64 Remix...
type "C:\subsonic\Playlists\C64 Remix.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Adding DanceTrance...
type "C:\subsonic\Playlists\Dance & Trance.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Adding Dubstep...
type "C:\subsonic\Playlists\Dubstep.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Adding Gothic...
type "C:\subsonic\Playlists\Gothic.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Adding Industrial...
type "C:\subsonic\Playlists\Industrial.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Adding Japanese...
type "C:\subsonic\Playlists\Japanese.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Adding Metal...
type "C:\subsonic\Playlists\Metal.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Adding Misc...
type "C:\subsonic\Playlists\Misc.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Adding Rock...
type "C:\subsonic\Playlists\Rock.m3u8" >> "c:\subsonic\Playlists\All Music.m3u8"
echo Adding Soundtracks...
type "C:\subsonic\Playlists\Soundtracks - Game.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
type "C:\subsonic\Playlists\Soundtracks - TV&Movie.m3u8" >> "C:\subsonic\Playlists\All Music.m3u8"
echo Done creating All music playlist.
REM chcp 437
echo Finished all operations
timeout /t 10 /NOBREAK
)


And I know this works because it's been working for months now.. but apparently it's broken now. Any ideas? Do I need to change how the "playlists" are formatted in order to get them to import again?

Thanks,
Rayne
User avatar
kyomi7502
 
Posts: 69
Joined: Mon May 21, 2012 2:13 pm

Re: Auto-Importing Playlists failed

Postby kyomi7502 » Thu Oct 23, 2014 11:58 am

Hmm... I'm thinking this might have something to do with the /u switch I'm using in order to capture the non-English characters.
Maybe the importer doesn't like Unicode playlists? Only thing I can think of so far.. anyone else having this issue?
User avatar
kyomi7502
 
Posts: 69
Joined: Mon May 21, 2012 2:13 pm

Re: Auto-Importing Playlists failed

Postby kyomi7502 » Mon Oct 27, 2014 12:01 pm

Still haven't found any solutions to this. I'd try updating to 5.0, but it seems like other people are having a lot of issues with it and I don't want to break things,
since it's working fine now (except for the aforementioned problem).

Anyone else having this issue? Maybe if I change the codepage from the batch file since the /u switch is on.. it'll work better?

The problem is.. it works without the /u switch but bands like Mondtraume with special characters get added as Mondtra??me and it causes SS to not find the file when importing. It's like I can have the playlists correct, or the importing work (without all the songs)...
User avatar
kyomi7502
 
Posts: 69
Joined: Mon May 21, 2012 2:13 pm

Re: Auto-Importing Playlists failed

Postby sindre_mehus » Wed Oct 29, 2014 8:25 pm

The playlist importer actually tries to parse the playlists using three different encodings (Latin, UTF-8, and the system default encoding), and picks the best result.

Could you please send me some example playlists, one with UTF-8 encoding and one without?

Thanks
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: Auto-Importing Playlists failed

Postby kyomi7502 » Thu Oct 30, 2014 11:47 am

Sent you a PM with the files Sindre, thanks much. :)
User avatar
kyomi7502
 
Posts: 69
Joined: Mon May 21, 2012 2:13 pm

Re: Auto-Importing Playlists failed

Postby sindre_mehus » Thu Nov 06, 2014 8:34 pm

Thanks!

I think I found the problem. According to this page
http://ss64.com/nt/cmd.html

the /U option produces UCS-2 output, which is more or less the same as UTF-16, according to
http://en.wikipedia.org/wiki/UTF-16

Hence, it wouldn't work when reading it as UTF-8.

Maybe you can try this:

http://stackoverflow.com/questions/3884 ... 500#388500
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: Auto-Importing Playlists failed

Postby kyomi7502 » Fri Nov 07, 2014 5:00 pm

Thanks for your quick reply. I have tried something like that before and it still comes up as ?? with the special characters, but there are a few more options that I haven't seen before.

If all else fails I'll just have to bite the bullet and make a small java program to do this.


EDIT: Oh my god... *finally*... I had to do something retarded with the batch file and console...

The console needs to be changed to Lucida and the codepage (chcp) needs be to 1250 with no /u switch... but the chcp 1250 has to be both inside and outside of the ( )'s for it to work.

Thank you so much for looking into this Sindre.
User avatar
kyomi7502
 
Posts: 69
Joined: Mon May 21, 2012 2:13 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests