Be able to get URL including songname ending with .mp3 ?!

Where are we heading with kPlaylist?

Be able to get URL including songname ending with .mp3 ?!

Postby htilly » Tue Oct 11, 2005 8:50 pm

Hi,

Quick question.
When downloading a song by pressing the "disk" symbol you will get an URL like:
http://www.host.com/mp3/index.php?downl ... -156800225

Is there any way to get a URL with a "xxx.mp3" at the end ?
Trying to enable Podcasting thru the playlists or similar, but it seems like iTunes etc are having problem downloading mp3s with the URL kPlaylist generates.

BR
Tilly
htilly
 
Posts: 41
Joined: Sat Jan 11, 2003 8:09 am
Location: Stockholm, Sweden

Re: Be able to get URL including songname ending with .mp3 ?

Postby aba » Tue Oct 11, 2005 8:57 pm

htilly wrote:Is there any way to get a URL with a "xxx.mp3" at the end ?
Trying to enable Podcasting thru the playlists or similar, but it seems like iTunes etc are having problem downloading mp3s with the URL kPlaylist generates.


Does it work in iTunes if you add for example &file=.mp3 in the end of the URL you submitted?

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Re: Be able to get URL including songname ending with .mp3 ?

Postby htilly » Sat Oct 15, 2005 11:06 am

aba wrote:
htilly wrote:Is there any way to get a URL with a "xxx.mp3" at the end ?
Trying to enable Podcasting thru the playlists or similar, but it seems like iTunes etc are having problem downloading mp3s with the URL kPlaylist generates.


Does it work in iTunes if you add for example &file=.mp3 in the end of the URL you submitted?

Åge


Nope.. does not :(
As for now when I have been looking at other application that creates podcasting xml files, it looks like you need to have the mp3 served as a file directly from the server/folder.
But I will keep looking..
I would just love the functionality to let users automatically subscribe to podcasts from kplaylist =)

BR
/Tilly
htilly
 
Posts: 41
Joined: Sat Jan 11, 2003 8:09 am
Location: Stockholm, Sweden

Postby remmelt » Tue Jan 24, 2006 4:55 pm

It can probably be done with a little .htaccess hacking.

If you can get the script to create playlists that go:

http://host/kplaylist_idofsong_nameofso ... stream.mp3

and a .htaccess rewriter that makes kplaylist.php?id=xxx&name=yyyy

from that, it should work.
remmelt
 
Posts: 3
Joined: Tue Jan 24, 2006 4:44 pm

Postby chrisjoh » Wed Jan 25, 2006 6:50 am

Just a thought that will break URL security and all that, but how about an option in the settings:

Human readable URLs: [y/n]

With this option enabled, kPlaylist would then traverse its database and extract the file name and path to it and present it as such:

http://host.com/index.php?f=/Artist/Album/filename.mp3

or something like that. Note that while it could potentially reveal the physical path to the file in the filesystem, it doesn't have to (as kPlaylist needn't be in the media dir) and it would quite easily solve the issue with iTunes and podcasts etc.

Just my 2 cents, anyway.

- christer
chrisjoh
 
Posts: 65
Joined: Tue Jan 17, 2006 10:57 am
Location: Bergen, Norway

Postby htilly » Wed Jan 25, 2006 12:45 pm

chrisjoh wrote:Just a thought that will break URL security and all that, but how about an option in the settings:

Human readable URLs: [y/n]

With this option enabled, kPlaylist would then traverse its database and extract the file name and path to it and present it as such:

http://host.com/index.php?f=/Artist/Album/filename.mp3

or something like that. Note that while it could potentially reveal the physical path to the file in the filesystem, it doesn't have to (as kPlaylist needn't be in the media dir) and it would quite easily solve the issue with iTunes and podcasts etc.

Just my 2 cents, anyway.

- christer


This sounds like a way to go...
I’m quite a newbie to PHP and the only contrib. I have made so far to kplaylist is the mail function... So.. any idea of how I could enable the functionality to get kplaylist to present the URL like http://host.com/index.php?f=/Artist/Album/filename.mp3 ? If this helps I might be able to get some simple podcasting to work.. but I would most likely need some help to fine-tune it =)



BR
Tilly
htilly
 
Posts: 41
Joined: Sat Jan 11, 2003 8:09 am
Location: Stockholm, Sweden

Re: Be able to get URL including songname ending with .mp3 ?!

Postby Toy Sun » Fri Sep 05, 2008 11:31 pm

Hi,
I'd like to keep this thread alive. As you may or may not know, this will be the way that we can access kplaylist on the iphone! At the moment, the complex-php-derived URL is blocking this.

Thanks so much, whoever can solve this!

Toy Sun
Toy Sun
 
Posts: 19
Joined: Sun Dec 10, 2006 3:47 am

Re: Be able to get URL including songname ending with .mp3 ?!

Postby aba » Fri Sep 05, 2008 11:38 pm

Toy Sun wrote:Hi,
I'd like to keep this thread alive. As you may or may not know, this will be the way that we can access kplaylist on the iphone! At the moment, the complex-php-derived URL is blocking this.

Thanks so much, whoever can solve this!

Toy Sun


kPlaylist has actually supported this for some time already. Please take a look
at this post: viewtopic.php?f=1&t=1936&p=7138&hilit=friendly#p7138
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Re: Be able to get URL including songname ending with .mp3 ?!

Postby Toy Sun » Sun Sep 07, 2008 12:57 am

Right On!
I'll give it a try right now....

thanks!
Toy Sun
 
Posts: 19
Joined: Sun Dec 10, 2006 3:47 am

Re: Be able to get URL including songname ending with .mp3 ?

Postby stokes » Wed Jan 05, 2011 6:39 am

Is there any way to get a URL with a "xxx.mp3" at the end ?
Trying to enable Podcasting thru the playlists or similar, but it seems like iTunes etc are having problem downloading mp3s with the URL kPlaylist generates.
stokes
 
Posts: 5
Joined: Tue Jan 04, 2011 1:35 pm

Re: Be able to get URL including songname ending with .mp3 ?

Postby aba » Wed Jan 19, 2011 3:01 pm

stokes wrote:Is there any way to get a URL with a "xxx.mp3" at the end ?
Trying to enable Podcasting thru the playlists or similar, but it seems like iTunes etc are having problem downloading mp3s with the URL kPlaylist generates.


Yes, you can. Look at this post: viewtopic.php?f=1&t=1936&hilit=filepathurl
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am


Return to Development



cron