full listings » Playback


RatingFile rsjtdrjgfuzkfg

Im-/export Ratings, Play- and Skipcount!


RatingFile



Description

This Add-On gives you the opportunity to im-/export Ratings, Play- and Skipcount from/to a file.
You can find it in the Tools Menu.

Features:
 Version 0.0
  Simple Im-/Export
 Version 0.1
  Progress-bar
  Options Dialog
 Version 1.1
  Compare File-Hash
 Version 1.2
  Im-/Export also Last-Played-Date
  Im-/Export also Imported-Date
 Version 1.3
  XML-Based file-format
  Disable import of unrated Songs (v1.3.1)
  Change file extension to '.xml' (v1.3.2)
  Append file extension when no file extension is specifed. (v1.3.2)
Will come in future releases:
 Without Version
  Support for the rockbox-export format (by luffedelly)

If you like the Add-On you might translate it into your language:
Click here to go to Babelzilla.org

If the Add-On doesn't work at your machine, please post here!
Please post a comment and/or rate, don't be afraid posting bugs and ideas!




Release Notes

Version Bump for 1.10 Release

New Locales, thanks to:
Lakrits (sv-SE)
yfdyh000 (zh-CN)




Images

(2)
  • Screenshot_0_thumbnail
  • Screenshot_1_thumbnail
 

Comments

(144)


cristian3100
cristian3100

Thanks, excellent add-on

over 2 years ago
atreiu
atreiu

Great, that's very promising! Thanks! :-)
It would be excellent, if you could implement Song-Identification via File-Hash, too (not only by tags).

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@atreiu:
Nice idea!

over 2 years ago
atreiu
atreiu

Oh, I just tried an import (only ~2400 Songs) and Songbird was totally unresponsive for about 4min. I would prefer to see a status-bar and still be able to minimize/maximize Songbird.

But otherwise, it worked well! Everything is imported correctly, no problem. Good job! :-)

over 2 years ago
Jerome
Jerome

Yes!!!!!!! Thanks!

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@atreiu:
progress-bar will definitely come. I didn't see the problem with my small (~400 Songs) Library.

over 2 years ago
topdownjimmy
topdownjimmy

Brilliant! I found myself just recently wishing for this functionality; definitely essential if you want to delete a messy profile and start fresh. Thanks!

over 2 years ago
SirSid
SirSid

Thank you so much!

over 2 years ago
SirSid
SirSid

You are my favorite plugin dev

over 2 years ago
GeekShadow
GeekShadow

fr translation done :)

over 2 years ago
luffedelly
luffedelly

it is very good idea. thanks!
can you give me specifications of this file-format?
I just want to make a simple program for writing rating-info from rockbox-DB to this format, and back.

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@luffedelly:
Up to now the file-format is:

first line (version control) currently:
SB_RatingFile:
Later (when adding Hashes) there will be another header, but the Add-On will stay compartible.

After that, every line describes one song:

var line= escape(artistName)+unescape("\001")+ escape(trackName)+unescape("\001")+ escape(albumName)+unescape("\001")+ duration+unescape("\000")+ rating+unescape("\001")+ playCount+unescape("\001")+ skipCount

So there ist the escaped ArtistName, TrackName and Album Name and the plain text duration (each seperated by the character 1), after that the character 0 and the plain rating, play- and skipcount (also seperated by character 1)
All numbers are plain text, so for example 32 is the text "32", not the character 32.

over 2 years ago
luffedelly
luffedelly

ok. thanks! (:
and what about your source-code? is it available anywhere?

over 2 years ago
luffedelly
luffedelly

ok! no more need. I've found already (:

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@atreiu:
the progress-bar is there!

over 2 years ago
Hiromacu
Hiromacu

@ rsjtdrjgfuzkfg: Good stuff! I see you put into my Hungarian [hu-HU] translation. Thanks! :P

over 2 years ago
luffedelly
luffedelly

excuse me, rsjtdrjgfuzkfg, are your sources free for use?
I want to make similar add-on to work with rockbox-database export format.
I don't know Javascript at all (never wrote before, never seen before). But yesterday I've tried to make minimum of required changes in your code (only import) and it works!

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@luffedelly:
The source is free for use (but it would be great to link this addon and register me as contributor)
If you want, you could also help me adding support for the rockbox-export-db format (maybe send me the xpi, you can find my email at the googlecode site of foldersync in the project owner section), so this addon could also export to the rockbox-export-db format. Of course you would be registered as contributor, too!

over 2 years ago
luffedelly
luffedelly

I don't know what is better, cause I want to make synchronization, instead of import/export. Import is simple, but I don't know how to export songbird-db to rockbox-export-db format, because it has some additional strange information.. Instead of that I can update rating and playcounter info in the existing rockbox-export-db file.
I'll send you code and explanation via e-mail.

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@luffedelly:
I think if import and export is theoretically possible, RatingFile would be a good place. If you want to make a real sync, you could try adding support to FolderSync. If there is no real sync possible, cause some data for new songs is missing and so on, you should release a seperate Add-On (maybe "rockbox-export-db file updater" or something like that)

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg


Version 1 is out!

over 2 years ago
topdownjimmy
topdownjimmy

This seems to stall Songbird completely for me when I try to export. Using Songbird 1.1.2 (build 1042) with Ubuntu 9.04 32-bit, and version 1.0.0.0 of this add-on.

over 2 years ago
luffedelly
luffedelly

2 topdownjimmy,
how big is your media-library? does progress-bar move or does everything just stall?

over 2 years ago
topdownjimmy
topdownjimmy

Sorry, I should have been more specific. I have 1835 albums. The progress bar doesn't move, nor does the percentage increase. Everything in Songbird becomes unresponsive and I have to kill the process.

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@topdownjimmy:
Does Songbird takes full CPU?

over 2 years ago
topdownjimmy
topdownjimmy

@rsjtdrjgfuzkfg:
It doesn't take full CPU (in fact not much at all), and to be more accurate, it doesn't stall Songbird completely; Songbird becomes unresponsive, but music continues to play.

The RatingFile progress window just sits there at 0% indefinitely.

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@topdownjimmy:
Here you can find a debug Version. Please post the messages you get!

over 2 years ago
sauntimo
sauntimo

I think this is an awesome idea, but evertime i run it, it crashes at 98% on an export. I'm on Xp SP3 - any advice?

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@sauntimo:
Wich OS do you use? Works fine under my XP SP3 and Ubuntu 8.10.
As you might see above, topdownjimmy has reported some problems with Ubuntu 9.04.
There is a new debug version, you can get it here.
The debug version will show MANY messages, post at least the last one here, so I can see where the problem is. Try it with a small library to get not that many messages (maybe with the last added ~20 songs in a clean profile?)

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@sauntimo:
Sorry, I read your comment at getsatisfaction and thought there would be the same. Ignore the OS-Question, but the debug version could help you!

over 2 years ago
sauntimo
sauntimo

Awesome, I'll try it out. Cheers! :)

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@atreiu:
The File-Hash is there ;)

over 2 years ago
topdownjimmy
topdownjimmy

@rsjtdrjgfuzkfg

UI Locked
FilePicker will be generated...
FilePicker returns OK or Replace
Got File and Stream
Wrote Header
Got LibView
Got SBProperties
Going to start with the songs; There are 19457 Elements

Done 0/19457.
Progress: 0%

Done 1/19457.
Progress: 0.0051395...%

[...]

Done 18/19457
Progress: 0.05.....%
--
At this point progress halts as usual, and I need to kill the songbird process.

Is it possible that one of the tracks in my library has wonky metadata or something that results in an error? What sort order does RatingFile use before it starts outputting data?

over 2 years ago
topdownjimmy
topdownjimmy

The file that was created won't open in a text editor, but I was able to see it in the terminal:

SB_RatingFile:
The%20OrganSinking%20HeartsSinking%20Hearts129000000
The%20OrganThere%20Is%20Nothing%20I%20Can%20DoSinking%20Hearts133000000The%20OrganWe%27ve%20Got%20to%20MeetSinking%20Hearts147000000
The%20OrganIt%27s%20Time%20to%20GoSinking%20Hearts177000000
The%20OrganI%20Am%20Not%20SurprisedSinking%20Hearts155000000
The%20OrganNo%20One%20Has%20Ever%20Looked%20So%20DeadSinking%20Hearts115000000ll14null
The%20OrganSteven%20SmithGrab%20That%20Gun126145000
The%20OrganBrotherGrab%20That%20Gun241528000
The%20OrganNo%20One%20Has%20Ever%20Looked%20So%20DeadGrab%20That%20Gun117000000ull14null
The%20OrganBasement%20Band%20SongGrab%20That%20Gun252682000
The%20OrganLove%2C%20Love%2C%20LoveGrab%20That%20Gun211748000
The%20OrganSinking%20HeartsGrab%20That%20Gun129933000
The%20OrganMemorize%20the%20CityGrab%20That%20Gun190000000
The%20OrganI%20Am%20Not%20SurprisedGrab%20That%20Gun164000000
The%20OrganThere%20Is%20Nothing%20I%20Can%20DoGrab%20That%20Gun155000000l
The%20Organ%5Buntitled%5DGrab%20That%20Gun37000000
The%20OrganA%20Sudden%20DeathGrab%20That%20Gun174628000

So apparently these are sorted by Date Added. The next file it should grab has some non-English characters in the metadata, which may be causing the problem.

Album: El Triángulo de las Bermudas

I can email you this track if you want to take a look at it.

over 2 years ago
Mozzer
Mozzer

Hey rsjtdrjgfuzkfg,

And thank you very much for a great plug-in. It's almost perfect now.. I have a few ideas to improve it further if you're interested...

Option for Exporting/importing Last played date, along with playcount, ratings and so on.
Option for Exporting/importing Playlists (I don't know if this is possible at all, but it would be a nice feature to have)
These are the only 2 features missing for making this the perfect back-up plugin IMHO...

Once again thank you...

Mozzer

over 2 years ago
Mozzer
Mozzer

Ups, I forgot to say.. I'm also having a problem when turning on the "File-hash" option.. It just stops at 25% and then locks up.. Just doing nothing... But maybe someone else is having the same problem??

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@topdownjimmy:
Thanks for your debug report. Yes, it gets the songlist sorted by date added, I tested it by giving a song the described album, and it worked.
Does something show up in the error console (open it before opening the dialog)?

@Mozzer:
To the file-hash-issue:
Does something show up in the error console (open it before opening the dialog)?
To the feature ideas:
Last played: We will see, added to the will come!
Playlists: How importing a playlist should work? The objects in the database are the same. So an option to export only one playlist would be possible, the normal import would change the exported objects in ALL playlists and the library.

over 2 years ago
topdownjimmy
topdownjimmy

@rsjtdrjgfuzkfg: No, nothing in the error console. Shall I send you the file? My email address is topdownjimmy@gmail.com. Thanks.

over 2 years ago
Mozzer
Mozzer

Thank you for your answer rsjtdrjgfuzkfg, now regarding the file-hash isse.. No, it dosn't show anything in the error console. It just stops at 25% and freezes up (I've tested it about 10 times) and I have to CTRL+ALT+DEL to stop the program....

Your idea of possibly exporting/importing one whole playlist with all the information in (Including last played date:) is absolutely genius.. Then we would have no problem going from Win to Linux to Mac and back again.. It would also help restoring the library after a crash, it would be a complete library back-up add-on... Please add this to the future will come list aswell:)

over 2 years ago
Naatan
Naatan

Does this just import/export or does it also sync?

Reason I'm asking is because I would like to sync my home pc ratings with my work pc.

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@Mozzer:
Could you try to open the up to there created rating-file and look into your library (sort by date added) and check-back what the next song would be? And it works when you disable hashes?
Strange....
No idea. Looks like I will release a new version with more possible error messages in the next weeks ;)

@Naatan:
It does just im- and export. So the only thing you could do is importing when arrive at a pc and export when leave a pc...
Or you write the ratings in tags (about:config -> songbird.metadata.ratings.enableWriting) and use an external drive for the songs.

over 2 years ago
Mozzer
Mozzer

Yes, it works when I disable hashes.. It takes about 2 minutes or so for my library when hashes is off, and then there is no problem...

over 2 years ago
EEKaWILL
EEKaWILL

When i saved my ratings from my sb on my windows computer i tried to import on my Ubuntu computer and it didn't even recognize the .srf i saved to my flash drive for some reason

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@EEKaWILL:
What means "recognize"? Throws it an "bad header" exception?
The "bad header" might occur if you want to import a rating-file with hash-informations into a songbird with RatingFile 1.0.0.1 or older installed.

over 2 years ago
topdownjimmy
topdownjimmy

@rsjtdrjgfuzkfg: Just realized my problem...many of my files had "invalid encoding" as a result of being moved from an old Windows NTFS drive. Fixed them all and it now works!

over 2 years ago
Mozzer
Mozzer

@rsjtdrjgfuzkfg,

Just wanted to let you know that I got it working.. I don't know what the problem was (other than I'm using Vista). If I run Songbird as an Administrator, then it finishes perfectly, even with hashes on. Just so you know..

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@topdownjimmy,Mozzer:
Nice! :)

@Mozzer: Seems like your "normal" account isn't allowed to open those files?! Vista... ;)

over 2 years ago
kingsinger
kingsinger

I'd also like to be able to sync the Rockbox database with the songbird one. Love to see this and the foldersync add-in somehow integrated to together, so that Rockbox enable UMS devices can sync smart playlists from SB and have the metadata update in both directions.

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@kingsinger:
luffedelly has developed im- and export for the rockbox-db export format. But there are still bugs in the import-part of the code, so there is some debugging work to do. If you want to do this, you can send me an eMail (see FolderSyncs homepage). If not, you will have to wait...
Maybe I will work on this in the next time, maybe later...

over 2 years ago
Rune
Rune

It would also be awesome if this program backed up the "Last Played Date" for each song as well. Just some useful info to have.

Thanks!

over 2 years ago
christian81
christian81

@rsjtdrjgfuzkfg how can make manually a file to import ratings? I lost my ratings, but i have the database of library (is corrupt), and I made a list with the songs that I want import ratings, can you tell me which columns from the database I need to build a file.

I have someone...

file%20name | artist | album | duration? | year? | rating | then.. and I have NULL | NULL

I have access to library database, Can I see the source code?

Thx man this can save my ratings (more than 20,000 songs).

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@christian81:
There art two RatingFile (*.srf) formats, both are compartible to the current versions of RatingFile, I would recommend you the format without hashes (for files with hashes you would have to calculate the hashes of all files externally, if you have no acces to a working songbird with RatingFile, cause Songbird doesn't store file-hashes in database).

RatingFiles are splitted in lines:

The first line is a kind of header to recognize if the file is a RatingFile, wich is

SB_RatingFile:

Each other line represents one track in the library; format:

<artist><#1><title><#1><#1><album><#1><duration><#0><rating><#1><playcount><#1><skipcount>

Important is that <artist>, <title>, <album> are escaped. Escape means, that for example a space character is changed to "%20" and a ' to "%27".
So, each line is described in RatingFile as

var line= escape(artistName)+unescape("\001")+ escape(trackName)+unescape("\001")+ escape(albumName)+unescape("\001")+ duration+unescape("\000")+ rating+unescape("\001")+ playCount+unescape("\001")+ skipCount;

You can find the whole source, in the Add-On file (*.xpi, download for each version of RatingFile here), for example of 1.1.0.1.
The xpi is a zip archive, browse to chrome\content to get the *.js sources. The source file with the whole file-format is dialog.js.

over 2 years ago
christian81
christian81

@ rsjtdrjgfuzkfg:

Thank you very much!!!!, I have playing with the database and I have a file with some tracks like this.

Aly%20&%20Fila|Rosaires|A%20State%20of%20Trance%202009|227343000|5
Neptune%20Project|Aztec|Dream%20Trance|258742000|5
...
...
but... is this a ascii code? -------> <#1> and <#0> between the fields?

I saw the source code but it's very diffcult to understand, I'll want to manipulate the list adding special characters with PHP or some basic programming language, thanks to the database I have the correct order (artist, title, album.....).

Is there a problem deleting the last 2 fields (playcount, skipcount)??? or I need to set NULL's ? ... to fill in the correct order.

Thx man for your help.

over 2 years ago
christian81
christian81

It's works perfectly! I had a lot of problems with the NULL & return car characters.. I export to mysql database and then to a file .txt, with a notepad & C++ script I replace characters and Voilaaaaaaa!!

It's import the ratings perfectly.... THX THX A LOT!

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@christian81:
You're welcome ;)

over 2 years ago
DJTeez
DJTeez

I seem to be having the same problem. The addon locks at 94% and renders the whole program, inactive.

I'm not a computer wiz so have downloaded your debug but dont quite know what to do with it next. It just sits there smiling at me in my downoad folder ;:-)

Am I supposed to cut and paste it somewhere??

Please advise... many thanks

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@DJTeez:
The debug version is a xpi-Addon like every other Songbird Add-On, so you can install it via drag'n'drop (Windows only) or via Tools|Add-Ons or the preferences, in the addon section there should be a button labeled "install...". open the xpi and use RatingFile as usual, you will get debug output (hint: the debug version bases currently on 1.0.0.1, so the file hash feature is missing)

over 2 years ago
Erikw
Erikw

Would be cool if can import/export ratings to comments field. For iTunes there's a script that will do just that. So if RatingFile could do this too I can sync ratings between iPhone and Songbird - now that would be sweet!

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@Erikw:

You mean, RatingFile should set the comment tag to for example "5" if the Rating is 5 stars?

over 2 years ago
mulluysavage
mulluysavage

I would like to store my library on a NAS, and access it from Songbird on my desktop and MythTV from my entertainment center. I would like the two systems to share ratings, last played, date added, and other information. Is there a way I can do this at all? Where does songbird save this information?

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@mulluysavage:

I don't know an easy way to do this :(

The Library informations (including Rating, Skip- and Playcount) are stored in a database file in your profile folder.
To access the data you can either access this file directly or you write a songbird addon. Take a look at the source of RatingFile to see how you can access the database. If you need help with coding such an AddOn, write a eMail, I will see if I can help you. A good start is the Mozilla Development Center.

over 2 years ago
mulluysavage
mulluysavage

Thanks for the generous offers of help. Can you help me find the profile folder? What would it be named/ where would it be?

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@mulluysavage:

Your profiles are stored in

<songbirddirectory>\Profiles\

<songbirddirectory> is the path to your songbird user data folder, for example (Windows)

C:\Documents and Settings\<username>\Application Data\songbird2
C:\Users\<username>\AppData\Roaming\songbird2

Under linux look into your home folder, there should be a .songbird or .songbird2 or similar...

over 2 years ago
mulluysavage
mulluysavage

Hmm there is no folder named Profiles in the Songbird directory on Linux, and I can't seem to find the user data folder. Strange, that my .ini file specifies Songbird2 as the profile, then a search using Catfish does not turn up a file by that name. Any penguins in the house?

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@Rune,Mozzer:

Version 1.2 does implement the last-Played dates/times :)

over 2 years ago
Yadonashi
Yadonashi

Absolutely brilliant! I have been waiting for something like this for a long time. This might just make me choose to return to Songbird once again. :)

over 2 years ago
ruipenunes
ruipenunes

Hello rsjtdrjgfuzkfg!

Thank you very much for all your work on this add-on.

If I'm not mistaken, you're just a few steps away from creating the first draft of a songbird profile rebuilder (backup).

There are some great ideas on this matter here, for example exporting/importing information about the installed add-ons:
http://getsatisfaction.com/songbird/topics/rebuild_profile_tool

But I would already be extremely thankful if you could manage to simply add an option for exporting/importing "Date added".

Please consider this. Right now I'm having to create another SB profile, since I'm having a few problems after installing the 1.4.1, so having this option would be awesome.

Thanks again for your work!

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

ruipenunes:

If you want, I add it to the will come...
Look above ;)

The profile backup thing... I already thought about it.
What is to save:
-The library
Thought: The music could be anywhere. Auto-Importing the music files is not possible. But importing one or two folders in Songbird is a thing everybody can do without much problems.
The parts of the library that are not in the Files, these parts should save this Add-On: Ratings, Counter and Dates (Thanks for the import-date-ides).
-The Add-Ons
How to save Add-Ons? I really don't know how to do this out of an Add-On. Maybe the user can save a extension list (there is another Add-On for that), and install them.
-The preferences
This is a problem. What everybody could do is backup the prefs.js in the profile folder. This could be made automatically, of course.

Anything else?

I think that for the not in the tags saved information this AddOn is a suitable way.
For the backup of one file - If somebody want I can write such an "Preference Backup" Addon. This is a nice idea.

The problem is, how to connect both?
Maybe the Preference Backup can communicate with RatingFile if it is installed.

I think this is the best way. If I can find some time anywhere, I will write such an AddOn. Nice Idea!

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@ruipenunes, all:
The backup-AddOn "BackupBird" is there ;)

over 2 years ago
ruipenunes
ruipenunes

Hello rsjtdrjgfuzkfg!

Thank you so much. I really appreciated your "christmas gift".

If only every add-on developer could be half as fast as you...

I'll try BackupBird as soon as I can, but in the mean time please update to 1.4.3.

Thanks again for all your great work!

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@ruipenunes:

You're welcome!
I didn't saw the update to 1.4.3... wasn't available via update...
Will release the new versions as soon as I can!

over 2 years ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@ruipenunes:
Date Added is there ;)

over 2 years ago
squidskin
squidskin

hmmm...I think I'm having the same problem @topdownjimmy was having a while back. it stalls at 0% no progress on the bar. how do I fix files with "invalid encoding"?

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@squidskin:
First, you could look how much is in the ratingfile created (open it with a text editor after killing songbird), is there anything inside?
Sort your library by date-added and look what song would be the next one. This one seems to cause the problem.
Any problems (bad characters in file system, can't play in Songbird, etc) at this file?

about 1 year ago
squidskin
squidskin

The text file does have about 5 songs in it. The add-on consistently stops in the same place

I couldn't find any problems at the next song. It plays fine, doesn't have any weird characters. What do you mean by "file system"? I checked the title, artist, and other stuff in the metadata.

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

File system means that if you see the file in a file manager (Windows: Explorer) there is a weird name. Is that so?
Any special characters in file name or metadata?
Any entries in the error console (Tools menu)?

about 1 year ago
squidskin
squidskin

No special characters in file name or metadata. In the error console, there are a couple of errors, but I don't think they're associated with this add-on. If I clear the error console and then just restart songbird, they reappear. I'll paste the two errors below anyway.

First Error:

Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [sbILibrary.getMediaItem]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: file:///C:/Program%20Files/Songbird/components/sbSmartMediaListsUpdater.js :: addToUpdateQueue :: line 186" data: no]
Source File: file:///C:/Program%20Files/Songbird/components/sbSmartMediaListsUpdater.js
Line: 186

Second Error:

Error: formatURL: Couldn't find value for key: 20and
Source File: file:///C:/Program%20Files/Songbird/components/sbURLFormatter.js
Line: 267

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@squidskin:
Sorry, but I don't know what could cause the error...
If I've an idea, I'll post. If you can solve the issue, please post here what caused it and how to fix.

about 1 year ago
squidskin
squidskin

bummer. wish I knew how @topdownjimmy solved the problem.

"Just realized my problem...many of my files had "invalid encoding" as a result of being moved from an old Windows NTFS drive. Fixed them all and it now works!"

Wonder what @topdownjimmy meant by "invalid encoding" there isn't anyway to contact members on this forum, is there?

about 1 year ago
argh
argh

i have rewritten the file connection to use xml. if you are interested, have a look here: http://dl.dropbox.com/u/2540262/dialog.js

i did a bit of debugging and it is running quite ok now, so far.

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@squidskin:
No there is no way to contact members directly.

@topdownjimmy:
If you look through this accidentally, it would be great to post how you fixed the issue.

@argh:
This would cause incompatibility to old RatingFiles, which is not that good...

What is so much better in using xml worth the work of a double-implementation to prevent this?

about 1 year ago
argh
argh

thats easy :-)

1) no fucking around with special chaacters
2) more robust parsing
3) readable and writeable for humans
4) potential cross-application support is easy (datastructure not hidden but obvious)
5) transformation to other fileformat easy (xslt)
6) better to understand for potential co-developers (established concept of storing data)
7) many tools available for quick editing/viewing/transforming outside the songbird application

this is what comes into my mind directly. there might be more :-)

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@argh:
ok,ok... ;)
- but I'm not sure if this makes the special character thing better...

But the implementation will take some time (or to be correct: it will take some time for me to find time to do that) :)

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@argh:
implemented.

Thanks for your contribution!

about 1 year ago
argh
argh

cool :-)

about 1 year ago
LeMirque
LeMirque

Hi rsjtdrjgfuzkfg, I am getting this error message when trying to import a srf file:

Die Datei ist beschädigt, existiert nicht oder ist kein Songbird Rating File: TypeError: propertiesElem.singleNodeValue is null

or, in English:

The file is corrupt, doesn't exist or is not a Songbird Rating File: TypeError: propertiesElem.singleNodeValue is null

The add-on worked great before, this is the first time the message occurs. It occurs on both my computers though, XP and Win7.

When I try and import a srf-File which has been created some time ago (end of june), it works, so i guess there is something wrong with the latest update?

(SB 1.7.3, Win XP and 7)

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@LeMirque:
Could you try to open the srf in a text editor?
What do you see? Is there this structure (with more mediaitems in the properties node):

<?xml version="1.0" encoding="UTF-8"?>

<properties>
  <mediaitem>
    <last-played>(a large number)</last-played>
    <date-added>(a large number)</date-added>
    <artist>(artist name)</artist>
    <track>(track name)</track>
    <album>(album name)</album>
    <duration>(large number)</duration>
    <rating>(number or null)</rating>
    <play-count>(number or null)</play-count>
    <skip-count>(number or null)</skip-count>
  </mediaitem>
</properties>
about 1 year ago
LeMirque
LeMirque

Yes, the structure of the file is just as above. maybe still a problem with special characters?

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@LeMirque:
I've no idea :(
Seems it can't find the properties element, so special characters could be the issue...
Maybe the xml parsing fails...?

about 1 year ago
LeMirque
LeMirque

I could send you my corrupt srf-file, if it helps killing some bugs. What do you think?

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@LeMirque:
That would be great.
My eMail is: <my><at>abwesend<dot>de

about 1 year ago
LeMirque
LeMirque

Finally found the source of the error: two files with very strange tags, i don't know how they were created, but now it works fine again.
i will give details about the content of the tags later if you're still interested.

about 1 year ago
squidskin
squidskin

@LeMirque, I'm having some problems, I'd like to know about what you found in your tags.

about 1 year ago
LeMirque
LeMirque

Some messed up tags, symbols and stuff. I try to copy and paste the string that caused the trouble, hoping it will be desplayed "correctly": 剐噉 ฀ 敐歡慖畬e翾 剐噉 ᄀ 癁牥条䱥癥汥툀䌀䵏M # 塘X†††††††††††††††

about 1 year ago
Grazfather
Grazfather

It doesn't force the extension, so typing whatever file name, then clicking on import doesn't show the file. extension should be appended unless explicitly removed.

(1.8 windows xp)

about 1 year ago
Grazfather
Grazfather

Let me clarify.

When exporting, it doesn't add the file extension and you need to type it in explicitly. It should be appended automatically, so you can find the file more easily when importing. Also consider using a file extension that isn't already used (for images)

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@Grazfather:

...srf is used?! Well, I might change it to xml because it is now xml-based (prior versions wasn't) and leave srf as option to support old files. Appending file extension is a nice idea, added to the will-come.

about 1 year ago
jigarshah
jigarshah

It hangs while exporting. It hangs SB as well. Not sure wats issue. No error in console. Let me know if can help in debugging.

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@Grazfather:
implemented. ;)

@jigarshah:
so, added a debug mode for you. Open a new tab, enter

about:config

as url. Accept the warning, and change the entry

extensions.ratingfile.debug

to enabled (windows: double-click it). Open the Error Console (Tools menu) and clear it. Try to export and post the messages you get here (the last ~10 messages are most important).

about 1 year ago
jigarshah
jigarshah

Last 10 messages.
http://img99.imageshack.us/img99/8079/screenshotpj.png

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@jigarshah:
can you reproduce that? (does it end always like this?)
If so, could you sort your library according to date-added and look what's after 'Breeze' by 'Ratnabali'? Weird characters?

about 1 year ago
skellers
skellers

I have just been having the same problem with it locking up at 63% from 9000+ tracks, I found it was stopping on 'ghost' tracks, tracks that were in the songbird library but not on the disk. Downloaded exorcist, got rid of the tracks and it went straight through no problems.

about 1 year ago
rsjtdrjgfuzkfg
rsjtdrjgfuzkfg

@skellers:
Do you had the file hash option enabled (Export:Write File Hash (slow))? Or did it crash without it?

about 1 year ago



Download
Log in to Rate

Statistics
Downloads: 12,331

Average Rating:
4 out of 5  based on 13 ratings

Images: 2

Comments: 144

Last Updated: 3 months ago
Details
Name: RatingFile

Author: rsjtdrjgfuzkfg

Contributors: argh

Version: 1.3.2.3 version history

Categories:


Log in to Add a Tag
Share
Embed:

Share: