ok, so overwrite, and when you open picard you should see all the new options, defaults should work
ceu joined the channel
outsidecontext
you are loading data from last.fm and based on that you set the originalyear
RifRaf
yep
its amazing how accurate it is in most cases
creature
Wait, you're using Last.fm's data on when the original release year was?
RifRaf
yes
creature
I would not trust that data further than I would frisbee a walrus.
RifRaf
test some files
ceu
hi
creature
It is getting better, but it is still far from accurate.
outsidecontext
just a guess: the data loading is run asynchronously, so it's possibly not available when the tagger script is executed
RifRaf
creature sorting chronologically is so much better than using the release date
its gives a weighted date based on years found for all tracks on album
creature
RifRaf: I haven't been following the details of what you're doing, but a lot of the Last.fm 'release date' data is based on when the album was uploaded, rather than when it was actually released. So you may be getting duff data.
ceu
is there a way to precompile the new release form with the titles of a bunch of mp3 files?
(I would like to have that when the release isn't available in freedb)
outsidecontext
rifraf: yes, that's it. the variables are not yet available when the script is run :(
RifRaf
outsidecontext hrm i thought it may be that, only the main picard tags are available but not plugin tags?
outsidecontext
depends on the plugin
RifRaf
ok let me try with genre
outsidecontext
a simple plugin setting some variable from locally available data will work as expected
but if the plugin does some http lookup, which is normally run asynchronously, you can't rely on the data being available in the script
couldn't you do everything you try to do with tagger script do inside your plugin?
RifRaf
yep. something like $copy(subtitle,date) does work but even $copy(subtitle,genre) will not work :(
outsidecontext yep guess will have to try do that
outsidecontext
as expected
you should be able to set the date tag to the earlier date inside the plugin
RifRaf
it didn't seem to like being changed when i tryed earlier
its ok, mp3tag does the job pretty quickly and lets me see what files have no date or original year tag in bulk
and then at least the plugin does not mess with any of picard tags such as the correct release date
outsidecontext
rifraf: i just noticed that date is a special case, you can't easily change it from inside the plugin or the tagger script
RifRaf
heh, kinda wat i discovered :)
outsidecontext
that is tagger script should work in the latest picard release. just for the fun of it you could try switching the release event from the context menu bonce the album is loaded
that should trigger your tagger script again, this time with the variables set
RifRaf
by right clicking album and going to Releases? i see just the one release ticked
outsidecontext
rifraf: that would of course only work for albums with more then one event
RifRaf
oh more on some, never even noticed this before
outsidecontext
bu sorry. that was not in the last release, will be in the next
RifRaf
k, it loading the album again when i change it
outsidecontext
problem is, that applying the release event will always overwrite your changes to the date tag
that's whats happens and why you have no chance of changing the date
RifRaf
could an original year tag be put into a future version of picard so that its just there?
outsidecontext
i'll have to ask luks about that
wait, inside the plugin you should be able to change the release events :)
in your _tags_finalize you get the album object
RifRaf
am writting it as ~id3:TXXX:ORIGYEAR am is seen properly in other programs that support original year
outsidecontext
there should be an array album.release_events. try changing the date there
RifRaf
not sure it its the ~ or what but do not see that tag in details even though it is written to the mp3 files
outsidecontext
yes, it's the ~. those tags are hidden in the UI
RifRaf
but without it the tag does not show up in other programs, just stumbled on that yesterday from some other plugin in the forum
symphonick has quit
outsidecontext
rifraf: yes, it's the only way to get the tag straight into id3 tags without changing something in picard :)