
addAsPodcast to amaroK service menu for
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
This simple .desktop file enables easy adding of podcasts to amaroK. It adds a new entry to konqueror´s service menu when choosing a hyperlink.
Because it makes use of very new features in amaroK, your amaroK version has to be at least 1.3.3 as seb mentioned in the comments. Last changelog:
Because it makes use of very new features in amaroK, your amaroK version has to be at least 1.3.3 as seb mentioned in the comments.
It seems the mimetype plays a role after all. Added three more mimetypes. Now it also works with urls having .xml or .rss as their extension.
Ratings & Comments
13 Comments
Great! Thanks a lot. Here's the content of the file with French & Spanish translations: [Desktop Entry] ServiceTypes=text/html,text/xml,application/xml,text/rss Actions=addAsPodcast [Desktop Action addAsPodcast] Name=Add as podcast to amaroK Name[de]=Als Podcast zu amaroK hinzufügen Name[fr]=Ajouter comme podcast à Amarok Name[es]=Añadir como podcast a Amarok Icon=amarok Exec=dcop amarok playlistbrowser addPodcast %u
You shouldn't have this mimetype as text/html, but rather it should be text/rss. It's also worthy to note that this depends on amaroK 1.3.3
I do not think there is a mimetype text/rss. Usually as mimetype either text/xml or application/xml is used. The mimetype in the .desktop-file refers to the mimetype of the webpage because this is where you will find the links to the podcasts.
oh, i saw an rss item in the mimetype folder so i assumed there was one.
Very nice, as a podcast listener and amarok dev I thank you. For those who have no idea where to put this file: $HOME/.kde/share/apps/konqueror/servicemenus/ for all users: $KDEDIR/share/apps/konqueror/servicemenus/
don't get ahead of yourself, bart.
Well, it's coming, once the next patch is committed :).
There should be a service menu to .desktop files "install service menu".
There IS one. Look for it, I can't remember the name.
Question, as an amaroK newbie. I added addAsPodcast to $KDEDIR/share/apps/konqueror/servicemenus/ But I don't have a directory $HOME/.kde/share/apps/konqueror/servicemenus/ Should I create the directory and also add the file there? Or is that unnecessary. Thanks.
Hello, yes, go ahead and create the directory. You could also copy the file to the global directory if you prefer that. Ciao Fabio.
Is the "global directory" "$KDEDIR/share/apps/konqueror/servicemenus/"? I did copy the file there. Does it make a difference if it's copied only to one of the two directories? Sorry to bother. I'm just trying to get this right. Thanks.
Hello, either one directory is fine. > $KDEDIR/share/apps/konqueror/servicemenus/ Yes, that is the global directory. But if you copy it to your local directory it is only available for the local user which you be fine in most cases. Ciao Fabio.