← Back to team overview

zeya team mailing list archive

Re: FEATURE/PATCH: Support m3u playlists as backend

 

Amit Saha wrote:

Hi Phil:

Phil Sung wrote:
Hi Amit,

(Happy new year! I apologize for the delay in responding. Various
things have been keeping me busy.)

On Thu, Dec 31, 2009 at 04:47, Amit Saha <lists.amitsaha@xxxxxxxxx> wrote:
Amit Saha wrote:
Pls. find attched the m3u.py file implementing the m3u backend and patches
to existing files.

Thanks! In general I think everything basically looks sound. A few comments:

1. Please move extract_metadata and album_name_from_path to
backends.py so both the dir and m3u backends can take advantage of a
single implementation.

Done. Pls. find the patch and the m3u.py file attached.


2. If you use os.path.expanduser (and optionally, also
os.path.abspath), then you can remove the requirement that the user
specify an absolute path to the playlist.

Thanks for that point. I shall do that when I have some time and probably when I add the PLS support.


Hope the patch looks good for a commit!

Definitely breaks the test suite, that patch.

I will make an attempt to fix it if none else does.

Best,
Amit


Best Regards,
Amit

Going ahead, I will probably add support for PLS files using the same
backend and choose the backend class depending upon the playlist file
extension.

That sounds good to me.

Cheers,
Phil





--
Journal: http://amitksaha.wordpress.com
µ-blog: http://twitter.com/amitsaha
IRC: cornucopic on #scheme, #lisp, #math, #linux



References