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: [fb2k v2] Playcount 2003 (Read 2994 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: [fb2k v2] Playcount 2003

Reply #26
I'm calling this 0.1 final.

https://jscript-panel.github.io/other/playcount2003/

- Remove `foo_playcount` importer from main `Library` menu.
- The `Edit` dialog for context menu selections now has built in `Presets`.



- Implement drop down history on the `Edit` dialog text boxes. Only title format patterns are remembered. Other plain text entry is not.
- Add support for importing `JSON` files with `UTF8-BOM`.

Re: [fb2k v2] Playcount 2003

Reply #27
General incompetence strikes again. 0.1.1 fixes a bug where the context menu items for marking selections as loved/unloved didn't work. This happened during the edit dialog rewrite and I wasn't paying enough attention. :/

https://jscript-panel.github.io/other/playcount2003/

Re: [fb2k v2] Playcount 2003

Reply #28
0.1.2 is just very minor file import tweaks for people modifying their own values which I doubt many are.

New download location: https://github.com/marc2k3/foo_playcount_2003/releases
New readme page: https://marc2k3.github.io/foo_playcount_2003/

Re: [fb2k v2] Playcount 2003

Reply #29
Hi there again Marc, regarding the %2003_last_played_ago% is there any plan to introduce month(m) and year(y) value instead of overly used week(wk)? just like in $jsp3_since.

Also another title formatting help question, with the last update the code "$substr(%2003_added_ago%,0,$strstr(%2003_added_ago%,d))" will return empty since there is no days(d) in string, since it will return just HH:MM:SS, is it possible to just make it return as "Today" string? Thanks.

Btw, there is small typo in the docs %2003_last_played_ago%`

---
Regarding the import feature, thanks for adding the presets for foo_lastfm_playcount_sync. However, it seems it had to be done manually. Can it be done in batch just like the previously import from foo_playcount in Library menu? Also a console log for the process would be nice.

Thank you.

Re: [fb2k v2] Playcount 2003

Reply #30
For display in JSP3, you can use $jsp3_since with these fields. Instead of using %2003_last_played_ago%, use

Code: [Select]
$replace($jsp3_since(%2003_last_played%),0d,Today)

I'll look at providing more feedback on edits.

Re: [fb2k v2] Playcount 2003

Reply #31
0.1.3 now reports how edits were handled in the Console. Also, the file importer stats are more accurate now.

Docs:
https://marc2k3.github.io/foo_playcount_2003/

Download:
https://github.com/marc2k3/foo_playcount_2003/releases

Re: [fb2k v2] Playcount 2003

Reply #32
Thanks for the update.
Regarding the last_played title formatting, I think i got it, here's my noob attempt.
Code: [Select]
$puts(lp,%2003_last_played_ago%)$puts(week,$replace($substr($get(lp),0,$strstr($get(lp), )),wk,))
$if($get(lp),$ifgreater($get(week),52,$div($get(week),52) years ago,$iflonger($get(lp),8,$substr($get(lp),0,$strstr($get(lp),d)),Today)),)



Re: [fb2k v2] Playcount 2003

Reply #34
https://marc2k3.github.io/foo_playcount_2003/
https://github.com/marc2k3/foo_playcount_2003/releases

So 0.1.4 adds these new fields...
Code: [Select]
%2003_added_ago2%
%2003_first_played_ago2%
%2003_last_played_ago2%

Demo:


Full code:
Code: [Select]
$font(Cascadia Mono,24,700)
Added: %2003_added%
$crlf()
Added ago: %2003_added_ago%
$crlf()
Added ago2: %2003_added_ago2%
$crlf()
$crlf()
First: %2003_first_played%
$crlf()
First ago: %2003_first_played_ago%
$crlf()
First ago2: %2003_first_played_ago2%
$crlf()
$crlf()
Last: %2003_last_played%
$crlf()
Last ago: %2003_last_played_ago%
$crlf()
Last ago2: %2003_last_played_ago2%
$crlf()
$crlf()
Plays: %2003_playcount%
$crlf()
Loved: %2003_loved%
$crlf()
Rating: %2003_rating%

That font function is only supported in JSP3 Text Display. It can be removed for displaying in ye olde foo_textdisplay / CUI item details.


Re: [fb2k v2] Playcount 2003

Reply #35
Thank you very much for the update, it looks wonderful!



Re: [fb2k v2] Playcount 2003

Reply #38
0.1.6
Update Edit dialog with Rating field. Although setting the Rating via the context menu was always possible, it wasn't possible to import ratings from foo_playcount. This change allows that.

Docs:
https://marc2k3.github.io/foo_playcount_2003/

Download:
https://github.com/marc2k3/foo_playcount_2003/releases

Re: [fb2k v2] Playcount 2003

Reply #39
0.1.7
This works around a horrible bug that prevented library viewers from updating themselves on startup. Apologies to anyone affected.

Docs:
https://marc2k3.github.io/foo_playcount_2003/

Download:
https://github.com/marc2k3/foo_playcount_2003/releases

 

Re: [fb2k v2] Playcount 2003

Reply #40
That was quick! Thank you. Everything is working properly with the Album List Panel again.
Think millionaire, but with cannons.