[mythtv-users] Re: m3u2myth.pl inserting empty playlists
m0j0 at foofus.net
Tue Aug 31 23:11:48 EDT 2004
On Tue, 2004-08-31 at 16:24, Grant Edwards wrote:
> Certainly not as scary as Perl. ;)
All depends on the Perl. My stuff is usually too pathetic to be scary.
> On my system the filename in the DB appears to be relative to
> the /data/music directory. I _swear_ I tried that style in the
> m3u file and it didn't work. At one point I had cr/lf line
> endings in the m3u file, but that shouldn't matter since it got
> chomped, right?
If you are having CR/LF issues, you may want to run the m3u files
through the 'dos2unix' command.
A quick hack to try is to throw the following into the script:
$file =~ s/\/data\/music//;
This would be inserted one line before:
SELECT intid FROM musicmetadata WHERE filename=...
More information about the mythtv-users