Crash-m / thelastripper

Automatically exported from code.google.com/p/thelastripper
0 stars 0 forks source link

Customize the path of files #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Files are saved in the format

MUSIC_PATH/Artist/Album/TrackName.mp3

I suggest one way to customize this format, for example:

%A/%a/%n.mp3

%A: Artist
%a: Album
%n: Track name
%t: Track number
%*: other information

Original issue reported on code.google.com by thomasgu...@gmail.com on 21 Nov 2007 at 6:19

GoogleCodeExporter commented 9 years ago
Last.fm gives us only Artist, Album and Track name. But nice idea, anyway :-)

Original comment by andreas....@gmail.com on 14 Jan 2008 at 12:46

GoogleCodeExporter commented 9 years ago

Original comment by andreas....@gmail.com on 14 Jan 2008 at 12:46

GoogleCodeExporter commented 9 years ago
I'm according with thomasgustavo, it will be a nice feature, and it's not 
difficult 
to implement it, just send a request at http://ws.audioscrobbler.com/1.0/album/
[artist]/[album]/info.xml and get the track number, send a request to http://
ws.audioscrobbler.com/1.0/track/[artist]/[title]/toptags.xml and get the genre 
tag 
(also for id3 tagging).

Original comment by outlikea...@gmail.com on 25 Feb 2008 at 11:56

GoogleCodeExporter commented 9 years ago
If you prefer MusicBrainz you can also ask at:
    http://musicbrainz.org/ws/1/track/?type=xml&artist=[artist]&release=
[album]&title=[title]

Original comment by outlikea...@gmail.com on 9 Mar 2008 at 2:29

GoogleCodeExporter commented 9 years ago
Custom file naming would be a really nice feature! I'd like to add a 
placeholder for
the station.

Original comment by sumeru...@googlemail.com on 31 Mar 2008 at 10:02

GoogleCodeExporter commented 9 years ago
Anyone considered using music brainz API to get more information about the 
missing
information ? 

Original comment by hebert_m...@hotmail.com on 3 Apr 2008 at 10:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hey guys, Jopsen told me to post here my patch for TheLastRipper.

Binaries:
http://outlikeashoe.altervista.org/TheLastRipper/TheLastRipper-bin.zip
Sources:
http://outlikeashoe.altervista.org/TheLastRipper/thelastripper-sources.zip

This patch works ONLY FOR WINDOWS.
I haven't modified the Unix & Mac GUIs, so they can't work, at best they could 
work 
as the normal SVN version.

Added features with this patch:
- Customizable filename
- After-Rip Command
- Customizable ID3-Comment
- Remaing Time
- Track Genre
- Track Number on Album
- UrlDecoded station name

Pattern keywords:
- %a = artist
- %A = album
- %n = track number on album
- %N = track number on album (with leading zero)
- %t = title
- %g = genre
- %s = station that you are recording

And for filename pattern, also:
- %f = filename
- %F = absolute filename

I hope you enjoy this patch.
If you have problems tell me that I'll try to solve them.
You must consider this patch as an alpha version, so it can be buggy.

Original comment by outlikea...@gmail.com on 15 Apr 2008 at 6:10

Attachments:

GoogleCodeExporter commented 9 years ago
Updated the patch..

Added:
Advanced filename pattern syntax:
 e.g.: [%g/]%a/%A/[%N - ]%t -> replace "%g/" with "genre/" ONLY if genre is known
       and "%N - " with "number - " ONLY if track number on album is known.
       otherwise the text in brackets [] will be replaced with an empty string.

Updated existiting music control:
 scan ALL the music directory to search the current song.
 and check also the ID3-tags (not only filename).
 not only check if exists artist/album/title.mp3 (like in the official version).

Added information storing for After-Rip Command, ID3 Comment and Filename 
pattern.
 these will be saved as the username, password, etc.. like in the official version.

Updated binaries:
http://outlikeashoe.altervista.org/TheLastRipper/TheLastRipper-bin.zip

Updated sources will be avaliable soon.. they are something like 20Mb so it 
will 
take long time to upload to the server.

Original comment by outlikea...@gmail.com on 17 Apr 2008 at 9:05

Attachments:

GoogleCodeExporter commented 9 years ago
I propose to make the interpret %i instead of %a and album %a instead of %A. 
Then the
uppercase version of every file would be unused and we could put an escaped
(everything but alnum replaced by _ for example) version of the field there.

e.g: Interpret is Band[with]crazy/name => %i = Band[with]crazy_name (/ cannot 
be in a
filename anyway), %I = Band_with_crazy_name

Original comment by mai...@googlemail.com on 17 Apr 2008 at 10:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Filename illegal chars (like "/") are already replaced with "_".
Intead of %i for interpret and %a for album, i prefer the MusicBrainz version:
 artist and relase, so %a and %r
Just wait for the next release.
I'm now searching for a way to save the stream directly to disc, instead of in 
a 
MemoryStream and only after to disc, so you can listen to the song while you're 
downloading it.

Original comment by outlikea...@gmail.com on 19 Apr 2008 at 5:57

GoogleCodeExporter commented 9 years ago
prevous versions of thelastripper saved directly to disc... this is not a good 
idea
as it can leave incomplete songs and requires constant disc access (a thing you 
would
want on a laptop). if you want to work with playback support take a look at 
issue 10,
I think the best solution purposed so far have been OpenAL
http://taoframework.com/project/openal

Original comment by jopsen@gmail.com on 19 Apr 2008 at 9:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Updated version:

New features list:
- you can choose if record the song directly to disc or buffer it in memory and 
save
  it when the download is completed.
- if song is recorded directly to disc, you can set a command that, for example,
  allows you to listen it with your favourite music player.
- replaced %A with %r that means Album (Release) in patterns.
- UpperCase version of pattern keys (except filename and tracknum) replaces non 
  alphanumeric chars with underscores ("_").
- to avoid problems with patterns, all "[" and "]" chars are replaced with "_".

Note that if you record to disc, if you skip a song, incomplete file will be 
deleted.

Updated binaries (ONLY FOR WINDOWS):
http://outlikeashoe.altervista.org/TheLastRipper/TheLastRipper-bin.zip
Updated sources:
http://outlikeashoe.altervista.org/TheLastRipper/thelastripper-sources.zip

Original comment by outlikea...@gmail.com on 21 Apr 2008 at 3:13

Attachments:

GoogleCodeExporter commented 9 years ago
Added new feature:

TheLastRipper now acts as a server that binds 127.0.0.1:PortNumber.
It sends to the clients the same stream that he receives from Last.FM
and you can listen directly to it with any music player that supports
HTTP streams, without requiring constant disc access.

Just choose a port number (if you have problems with the default one), open
your favorite music player, and open the "http://127.0.0.1:PortNumber" URL.

Original comment by outlikea...@gmail.com on 23 Apr 2008 at 8:24

Attachments:

GoogleCodeExporter commented 9 years ago
Corrected bug in Skip existing music function.

Updated binaries (ONLY FOR WINDOWS):
http://outlikeashoe.altervista.org/TheLastRipper/TheLastRipper-bin.zip
Updated sources:
http://outlikeashoe.altervista.org/TheLastRipper/thelastripper-sources.zip

Original comment by outlikea...@gmail.com on 26 Apr 2008 at 6:04

Attachments:

GoogleCodeExporter commented 9 years ago
Updated search in music directory to skip existing music.
Corrected bug with the port number.

Original comment by outlikea...@gmail.com on 28 Apr 2008 at 9:30

Attachments:

GoogleCodeExporter commented 9 years ago
if you dont mind i would commit these changes and prepare a new windows 
release...

greetings, 

Andreas

Original comment by andreas....@gmail.com on 20 Oct 2008 at 12:32

GoogleCodeExporter commented 9 years ago
You're absolutely welcome to commit and release as much as you want... :)

I'm currently busy with other projects and realizing that I don't really have 
time
for the rewrite I had in mind... And I know that I ought to update the Linux 
version,
which I probably wont get done for a while either... So feel free to take this
project as far as you'd like...

Regards Jonas Finnemann Jensen.

Original comment by jopsen@gmail.com on 20 Oct 2008 at 4:31

GoogleCodeExporter commented 9 years ago
I sent a mail to jopsen, anyway before commit/release anything I think we 
should 
talk about the features to improve and develop. Otherwise we can't collaborate 
in 
the right manner.

Original comment by outlikea...@gmail.com on 29 Oct 2008 at 9:44

GoogleCodeExporter commented 9 years ago
feature is implemented, so i close this issue

Original comment by andreas....@gmail.com on 18 Feb 2009 at 6:11