Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: importing XML foo_playcount? (Read 3922 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

importing XML foo_playcount?

First, sorry if this is the wrong section. I figured this was proper place since foo_playcount was listed under official components even though it's an optional one. Please move if this is the wrong location.

The problem is that I exported playback data to an XML file but when going to library>playback statistics>import statistics>.XML file    the playback data does not update from  blank to the data that's in the XML file. The foo_playcount faq also says "through Library => Playback Statistics menu commands, or through context menu on specific tracks. " However there's no option on the context menu to import from XML, only from file tags.

I don't know if I'm missing a step or just doing it wrong...    I exported the XML data a few hours before I lost the files in a HDD failure. I had backups on the files but they have no playback data which is why I'm trying to import from the XML rather than from the files themselves.  Sorry for my ignorance, I really don't know much about XML and such...I'm just trying to get my playback stats back.

importing XML foo_playcount?

Reply #1
How did you export your playback statistics? The context-menu exports the statistics just for the marked file(s), the Library-menu exports it completely.

In order to import the statistics you always have to use the Library-menu in this scenario, the content of that XML file determines whether you get the values only for a few files or the entire library.

The corresponding columns should be updated immediately.

Since XML files are plain text files, you can open your XML file with a text editor and check its content for completeness.

If you exported your statistics in error partially but have a backup of your foobar2000 configuration: The original playback statistics data is stored in the folder \foobar2000\index-data. Restoring that folder's content would make an import unnecessary.
This is HA. Not the Jerry Springer Show.

importing XML foo_playcount?

Reply #2
I used the library setting to export, though I also have one for the specific playlist-Neither are working. What's happening is I'm putting the files in the locations they were in before and Foobar is adjusting their playback data to 0 even though prior to putting the files back their data was still saved on foobar, apparently. So I tried to import the XMLs I had before and nothing changed.  The XML files at least appear to have all the data in them. Again I'm completely new to this kind of thing and know nothing about XML or playback statistics. An example of the what XML contains is

<Entry Added="130003385616285405" Count="147" ID="9bc0b16dd8ee4cc4" Rating="191" LastPlayed="130004187656159462" FirstPlayed="130004187656159462"/>

Is this proper? Hopefully the XML is at least fine so I can still salvage this. I appreciate any and all help.

importing XML foo_playcount?

Reply #3
Quote
I'm completely new to this kind of thing and know nothing about XML
I suggested to open the file with a text editor just to make sure that it contains more than a few data records so that it can be assumed it comprises your entire library; foobar does not urge you to know anything about the XML format  .

Would you mind posting a list of your components as it is described here [See: "5. Post other helpful information."]? Additionally it would be useful to tell us the title formatting scripts from your columns which aren't updated and what user interface and playlist viewer you are using.

I still have some difficulties to understand exactly what has happened on your computer: Did your failed HDD contain only your audio files, you replaced it and an untouched foobar2000 configuration, located on another and intact HDD, is suddenly no longer able to show the stats correctly? Or was your foobar2000 installation affected as well and you had to build up from scratch besides the exported Playback Statistics?
This is HA. Not the Jerry Springer Show.

importing XML foo_playcount?

Reply #4
Quote
I'm completely new to this kind of thing and know nothing about XML
I suggested to open the file with a text editor just to make sure that it contains more than a few data records so that it can be assumed it comprises your entire library; foobar does not urge you to know anything about the XML format  .

Would you mind posting a list of your components as it is described here [See: "5. Post other helpful information."]? Additionally it would be useful to tell us the title formatting scripts from your columns which aren't updated and what user interface and playlist viewer you are using.

I still have some difficulties to understand exactly what has happened on your computer: Did your failed HDD contain only your audio files, you replaced it and an untouched foobar2000 configuration, located on another and intact HDD, is suddenly no longer able to show the stats correctly? Or was your foobar2000 installation affected as well and you had to build up from scratch besides the exported Playback Statistics?

First, sorry for very late reply. I got pretty busy lately. I very much appreciate you taking the time to help me.  The XML seems like it's fine, it has what appears to be thousands of entries, like it should.

Basically, the first.My music was stored on my C drive (that died) while I had portable version of Foobar installed on D drive. I had a backup of my music files on F drive. Due to a past experience, I decided to put one folder in first and when I did all the data on those files reset on Foobar. I was messing around with some things a few days before it crashed though and had created an XML that was saved to my D drive. (I only used my C drive for music because that's where my playlists recognized them for the past decade, and my harddrive was slowly running out of room, literally everything else besides System files are on D and F).

So in other words, If I were to transfer my music back to the C Drive it overwrites all the playback data that Foobar saved back several months to when the files were last used, and the only way I see to fix this is by using the XML I had created. Some things I thought would affect don't seem to be the case. I made 100% sure on my test folder/album that the file paths are exactly the same as what they were when the XML was created, the file names in every field are exactly the same except for the Playback Stats but the XML still doesn't seem to do anything.

Code: [Select]
Core (2013-03-29 11:10:54 UTC)
    foobar2000 core 1.2.4
foo_albumlist.dll (2013-02-11 11:28:58 UTC)
    Album List 4.5
foo_audioscrobbler.dll (2008-05-13 20:36:16 UTC)
    Audioscrobbler 2.3.1
foo_cdda.dll (2013-03-07 09:48:32 UTC)
    CD Audio Decoder 3.0
foo_converter.dll (2013-03-29 11:09:02 UTC)
    Converter 1.5
foo_customdb.dll (2013-04-18 21:58:10 UTC)
    Custom Database 0.1.0_beta1
foo_dop.dll (2008-09-28 20:00:59 UTC)
    iPod manager 0.6.3.0
foo_dsp_eq.dll (2013-02-11 11:28:58 UTC)
    Equalizer 1.0
foo_dsp_std.dll (2013-02-11 11:28:50 UTC)
    Standard DSP Array 1.2
foo_freedb2.dll (2013-02-11 11:27:56 UTC)
    Online Tagger 0.7
foo_httpcontrol.dll (2012-08-14 19:19:51 UTC)
    HTTP Control 0.97.12
foo_input_std.dll (2013-03-29 11:09:54 UTC)
    Standard Input Array 1.0
foo_input_tta.dll (2009-10-08 03:58:35 UTC)
    TTA Audio Decoder (unofficial) 2.4.2
foo_jesus.dll (2010-10-12 18:58:15 UTC)
    Autosave & Autobackup 10
foo_lyricsgrabber2.dll (2011-04-27 15:09:25 UTC)
    Lyrics Grabber 2 0.5.5.2 beta
foo_osd.dll (2013-04-19 06:28:30 UTC)
    On-Screen Display 1.73
foo_playcount.dll (2011-07-20 15:40:49 UTC)
    Playback Statistics 3.0.2
foo_playlisthistory.dll (2011-06-06 14:50:21 UTC)
    Playlist History 0.1.6
foo_queuecontents.dll (2012-04-03 19:40:38 UTC)
    Queue Contents Editor 0.5.1
foo_rgscan.dll (2013-03-29 11:09:02 UTC)
    ReplayGain Scanner 2.2
foo_softplaylists.dll (2013-04-18 20:49:45 UTC)
    Soft Playlists 2011-02-05
foo_textdisplay.dll (2012-08-06 05:12:02 UTC)
    Text Display UI Element 1.1 beta 1
foo_texttools.dll (2011-05-05 17:21:05 UTC)
    Text Tools 1.0.5
foo_ui_columns.dll (2011-02-27 20:22:58 UTC)
    Columns UI 0.3.8.8
foo_ui_std.dll (2013-03-29 11:09:24 UTC)
    Default User Interface 0.9.5
foo_uie_lyrics2.dll (2011-04-28 17:45:42 UTC)
    Lyric Show Panel 2 0.4.6.15
foo_uie_wsh_panel_mod.dll (2013-04-18 20:57:58 UTC)
    WSH Panel Mod 1.5.6
foo_unpack.dll (2013-02-11 11:28:10 UTC)
    ZIP/GZIP/RAR Reader 1.6
foo_winamp_ipc.dll (2008-04-21 09:58:08 UTC)
    Winamp IPC emulator 0.1.3

I'm sure there are a few of those I don't really need anymore, I just never bothered to go through which ones I actually use often.

importing XML foo_playcount?

Reply #5
Quote
Additionally it would be useful to tell us the title formatting scripts from your columns which aren't updated and what user interface and playlist viewer you are using.

Can you provide this information please too, Kougeru?
This is HA. Not the Jerry Springer Show.

importing XML foo_playcount?

Reply #6
Sorry, must've missed that. The two things I care about, that are not updating are %last_played%, %play_count% and %rating%. But nothing is updating at all, including %first_played% and such.  The user interface I'm using I believe is Columns UI. As far as I know I'm just using the default playlist viewer with columns UI.

I installed the portable version of Foobar years ago and haven't modified much since, aside from updating the client and components.

importing XML foo_playcount?

Reply #7
I got the xml to work for the most part. There was 156 files that did NOT work properly. Well, they did but it was weird. The data on their properties matched up but once the files were played the data reset for some reason. This happened before randomly with other files and I could never figure out why so I guess it's just a small causality, the other thousands of files worked fine finally. >.< thank you