IPB

Welcome Guest ( Log In | Register )

126 Pages V  « < 103 104 105 106 107 > »   
Reply to this topicStart new topic
WSH Panel Mod script discussion/help.
marc2003
post Oct 8 2013, 21:30
Post #2601





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



no.
Go to the top of the page
+Quote Post
r3v0
post Oct 8 2013, 21:37
Post #2602





Group: Members
Posts: 107
Joined: 25-August 08
From: Netherlands
Member No.: 57475



QUOTE (marc2003 @ Oct 8 2013, 22:30) *
no.


Too bad, It would have solved my multi value sorting problems in DUI.


--------------------
<3 F00
Go to the top of the page
+Quote Post
marc2003
post Oct 11 2013, 07:51
Post #2603





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



a few more updates:

CODE
7.2013-10-11.02

"Musicbrainz". Added some new favicon images for
"Links" mode. This requires that you download the full
zip and extract the "marc2003" folder again.

https://dl.dropboxusercontent.com/u/22801321/wsh/samples.zip

The "Small Web Links" script also needs these new images.

7.2013-10-11.01

"Now playing" & "Thumbs". Bugfix. Images did not always update
properly after deleting a file using the right click
menu option on Windows XP.


full download: https://dl.dropboxusercontent.com/u/22801321/wsh/samples.zip
full changelog: https://dl.dropboxusercontent.com/u/2280132...h/changelog.txt

files changed/added:
CODE
marc2003\common7.js
marc2003\images\allmusic_small.png
marc2003\images\decoda_small.png
marc2003\images\facebook_small.png
marc2003\images\google_plus_small.png
marc2003\images\instagram_small.png
marc2003\images\myspace_small.png
marc2003\images\rateyourmusic_small.png
marc2003\images\secondhandsongs_small.png
marc2003\images\soundcloud_small.png
marc2003\images\tumblr_small.png
marc2003\images\wikidata_small.png


i also need to correct myself about a comment i made about musicbrainz picard the other day. i said it doesn't write "proper" multi value tags. i was wrong and it is behaving as expected. according to the id3v2 spec, only single values should be written to TXXX frames.

This post has been edited by marc2003: Oct 11 2013, 07:54
Go to the top of the page
+Quote Post
MordredKLB
post Oct 12 2013, 07:12
Post #2604





Group: Members
Posts: 198
Joined: 1-May 09
From: Austin, TX
Member No.: 69413



QUOTE (marc2003 @ Oct 11 2013, 01:51) *
i also need to correct myself about a comment i made about musicbrainz picard the other day. i said it doesn't write "proper" multi value tags. i was wrong and it is behaving as expected. according to the id3v2 spec, only single values should be written to TXXX frames.

It's confusing because foobar will happily write and read multiple values in TXXX frames, but many other taggers can't especially if they're using a compliant lib like id3lib. It's pretty frustrating because if you want to add your own non-standard tag, it's going to be a TXXX frame, and then you have issues.
Go to the top of the page
+Quote Post
mire777
post Oct 12 2013, 11:57
Post #2605





Group: Members
Posts: 371
Joined: 9-June 12
Member No.: 100550



Extremehunter, i use your Spinning Disc Image Viewer, for WSH panel mod 1.4.2. http://pastebin.com/nfnwQWK8
It works well, but when scrolling playlists, it is struggling to spin. I use EL playlist.
Why is this happening?

Also when i add folder in Media Library. System becomes unresponsible for a while, i can not start any other program, until foobar complete is adding.

Is there something wrong with my config?

This post has been edited by mire777: Oct 12 2013, 11:58
Go to the top of the page
+Quote Post
bobboof
post Oct 13 2013, 01:27
Post #2606





Group: Members
Posts: 4
Joined: 13-October 13
Member No.: 110916



Hey Guys, long time lurker, first time poster.

First, thank you everyone for all the amazing scripts you post in this thread, it's chalk full of very cool additions.

At the moment I add a lot of different tag fields to my music: including record label and catalog number. I have my Foobar setup to show artist information that is pulled from Last.FM. I am wondering if it's possible to do the same for the record label? I'd love to see a picture, biography, and relevant URLs for the record label in a panel on my config. I'd even consider adding this to a tag field, but i'm unsure how to do it best.

Maybe pull from a folder where there is a set of images with the record label name? Also, there could be a text file with the record label name. That way, when a file is selected with Label X, this script would show Label X.jpg/png/gif and Label X.txt. Ideally I could control how the text is formatted with maybe html or something similar?

Any ideas?
Go to the top of the page
+Quote Post
marc2003
post Oct 13 2013, 03:07
Post #2607





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



my simple text reader script can display the contents of a text file based on title formatting.

CODE
d:\labels\%label%.txt


obviously, it's only plain text. you can't style it apart from changing the font/colours in your main display preferences.

my thumbs script can display images from any custom folders you like. you have to specify the folder name though - and it would display all images inside that folder.

CODE
d:\labels\%label%


by default it downloads images from last.fm so you'd have to right click the panel image source>custom folder.

as with all my scripts, all these options are found on the right click menus.

This post has been edited by marc2003: Oct 13 2013, 03:09
Go to the top of the page
+Quote Post
MordredKLB
post Oct 13 2013, 17:02
Post #2608





Group: Members
Posts: 198
Joined: 1-May 09
From: Austin, TX
Member No.: 69413



Last.fm has crappy logos. There might be good information about them, at least for the major labels, but the logos will typically look awful. Fortunately for you, I'm about to release my theme which uses record labels, about half of which I created myself and the rest were uploaded by other users of fanart.tv.

Download recordlabels.rar.

The images come in two sizes: 400x270 which is the majority, and 161x109 (which is 2.48x smaller than the larger ones). The smaller size ones generally suck, but they are hard to find good art to replace. My theme strips out " Music", " Records" and " Recordings" so that I don't have to keep two images when musicbrainz or other places decide to list a label as "Electra Records" in one place and "Electra" in another.

Here's the code I'm using to retrieve them from a specific folder where you've unrar'd them, but I'll leave it up to you how you want to display them:

CODE
pref["label_base"] = fb.ProfilePath+"images/recordlabel/";

function LoadLabelImage(publisherString) {
recordLabel = null;
d = new Date();
labelStr = fb.TitleFormat(publisherString).Eval().replace(']','').replace('[','').replace(':',"");
if (labelStr) {
/* First check for record label folder */
lastSrchYear = d.getFullYear();
fb.trace(lastSrchYear);
dir = pref["label_base"]; // also used below
if (utils.FileTest(dir+labelStr, "d") ||
utils.FileTest(dir + (labelStr = labelStr.replace(/ Records$/,"").replace(/ Recordings$/,"").replace(/ Music$/,"")),"d")) {
year = parseInt(fb.TitleFormat("%date%").Eval());
for (; year <= lastSrchYear; year++) {
yearFolder = dir + labelStr + "\\" + year;
if (utils.FileTest(yearFolder, "d")) {
fb.trace("Found folder for "+labelStr+" for year "+year+".");
dir += labelStr+"\\"+ year + "\\";
break;
}
}
if (year > lastSrchYear) {
dir += labelStr+"\\"; /* we didn't find a year folder so use the "default" logo in the root */
}
}
/* actually load the label from either the directory we found above, or the base record label folder */
labelStr = fb.TitleFormat(publisherString).Eval().replace(']','').replace('[','').replace(':',""); // start over with the original string to be safe
label = dir+labelStr+".png";
if (utils.FileTest(label, "e"))
recordLabel = gdi.Image(label);
else {
labelStr = labelStr.replace(/ Records$/,"").replace(/ Recordings$/,"").replace(/ Music$/,"");
label = dir+labelStr+".png";
if (utils.FileTest(label, "e")) {
recordLabel = gdi.Image(label);
} else {
label = dir+labelStr+" Records.png";
if (utils.FileTest(label, "e"))
recordLabel = gdi.Image(label);
}
}
}
return recordLabel;
}


This assumes you unrar the file to "%appdata%/foobar2000/images/". publisherString would be a title formatted string something like: $meta(label,0), although in my theme I build up an array of strings to try, and then iterate through them looking for labels which allows me to display more than one label if needed. One of the cool features is that for labels that have changed their logo over time (like Epic) I have a sub folder with different years for when the logo changed. So an album with %date% of 1975 would pull from "Epic/1976/epic.png" to display the old sunburst logo while anything after 2010 would use the current Epic logo.

This post has been edited by MordredKLB: Oct 13 2013, 17:12
Go to the top of the page
+Quote Post
jahtimes
post Oct 18 2013, 08:39
Post #2609





Group: Members
Posts: 23
Joined: 24-March 11
Member No.: 89275



Thanks marc2003 for all your works, and above all, your sharings !

My foobar config must have at least 7 scripts from you, and all awesome.


But, I have a little problem with thumbs script, yesterday it downloaded artist pics perfectly and today it's not working, it says, no fetching art... My tags are good and I tried on several artists, I don't know why I'm getting this...

Is this a well known bug with Last FM ? When I "Online Update", my console says : Thumbs: HTTP error: 0

I tried your thumbs script and thumbs2, not working. Weird no ?
Go to the top of the page
+Quote Post
marc2003
post Oct 18 2013, 11:01
Post #2610





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



the rotten gits at last.fm have deprecated the service. it's no surprise as they did remove the documentation some time ago. now they've finally turned it off. sad.gif

CODE
<lfm status="failed"><error code="27">
    The artist.getImages method has been deprecated.
</error></lfm>


i'll have to try and find another source.

as for your update error, that was introduced when my host (dropbox) messed around with their domain name and re-directions. you need to extract the marc2003 folder from the full zip here- https://dl.dropboxusercontent.com/u/22801321/wsh/samples.zip - make sure the scripts in panels get updated as well. all future updates should work.




This post has been edited by marc2003: Oct 18 2013, 11:04
Go to the top of the page
+Quote Post
jahtimes
post Oct 18 2013, 11:25
Post #2611





Group: Members
Posts: 23
Joined: 24-March 11
Member No.: 89275



Thanks for the explanations marc2003 wink.gif
Go to the top of the page
+Quote Post
marc2003
post Oct 18 2013, 11:39
Post #2612





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



samples updated rolleyes.gif

CODE
7.2013-10-18.01

"Now playing" & "Thumbs". Last.fm have removed their artist
images service so I've disabled the menu options.

http://www.last.fm/group/Last.fm+Web+Services/forum/21604/_/2216689


obviously the script will continue to display any images you've already acquired or you can put it into custom folder mode via the right click menu.



existing users: right click>Update script.
full download: https://dl.dropboxusercontent.com/u/22801321/wsh/samples.zip
Go to the top of the page
+Quote Post
jahtimes
post Oct 19 2013, 10:00
Post #2613





Group: Members
Posts: 23
Joined: 24-March 11
Member No.: 89275



Hi marc2003, is it possible to add a search button next to the artist name like on your last.fm similar artists script on the Last FM Charts script ?
Go to the top of the page
+Quote Post
marc2003
post Oct 19 2013, 18:38
Post #2614





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



^it's certainly possible. i'll think about it.

for anyone who is suffering withdrawal symptoms from not being able to download last.fm images for the last day or so, i've made a little replacement

if anyone wants to test it, save these 2 files in your marc2003 folder

https://dl.dropboxusercontent.com/u/2280132...temp/common7.js
https://dl.dropboxusercontent.com/u/2280132...mp/download.vbs << you might need to right click the saved file>properties>unblock.

if foobar is running, you'll need to restart.
Go to the top of the page
+Quote Post
mire777
post Oct 19 2013, 19:39
Post #2615





Group: Members
Posts: 371
Joined: 9-June 12
Member No.: 100550



Marc, which version WSH you use, and where to download?
Go to the top of the page
+Quote Post
marc2003
post Oct 19 2013, 19:42
Post #2616





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



1.5.6: http://code.google.com/p/foo-wsh-panel-mod/downloads/list
Go to the top of the page
+Quote Post
mire777
post Oct 19 2013, 19:55
Post #2617





Group: Members
Posts: 371
Joined: 9-June 12
Member No.: 100550



QUOTE (marc2003 @ Oct 19 2013, 20:42) *


Thank you, works fine.. No problems smile.gif
Go to the top of the page
+Quote Post
mire777
post Oct 19 2013, 21:42
Post #2618





Group: Members
Posts: 371
Joined: 9-June 12
Member No.: 100550



Tested...
I am satisfied how it works. Well done Marc..
We would be lost without you.
I am more than happy smile.gif
I Only must to modify script for my config. It would be good if you provide support for the WSH before 1.5.6 , (problem is only in ''AppendTo'' ,menu)
If you have time and if you want. Thanks a lot for this..

This post has been edited by mire777: Oct 19 2013, 22:14
Go to the top of the page
+Quote Post
marc2003
post Oct 20 2013, 08:18
Post #2619





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



QUOTE (mire777 @ Oct 19 2013, 21:42) *
It would be good if you provide support for the WSH before 1.5.6


no chance. crying.gif tongue.gif
Go to the top of the page
+Quote Post
Falstaff
post Oct 20 2013, 08:58
Post #2620





Group: Members
Posts: 2799
Joined: 12-November 06
Member No.: 37463



QUOTE (marc2003 @ Oct 20 2013, 09:18) *
QUOTE (mire777 @ Oct 19 2013, 21:42) *
It would be good if you provide support for the WSH before 1.5.6


no chance. crying.gif tongue.gif


FYI, the only differences between v1.5.4 and the v1.5.6 are:
- FIX: Fix a bug that preprocessor "tooltip" didn't work at all.
- ADD: Added GetColorScheme() method to IGdiBitmap interface.

so if these two features are not used, you can use v1.5.4 as well, it make sense when you know that v1.5.6 is not stable when using complex script that use timers and create a lot of objects (even if they are free from memory properly). The fix about tooltip brought by v1.5.5 & v1.5.6 has broken something in the handle of memory usage
TIPS: a way to fix this bug in v1.5.6 is to code a CollectGarbage() many times in the life of the script / memory usage done.


--------------------
http://br3tt.online.fr/
Go to the top of the page
+Quote Post
marc2003
post Oct 20 2013, 09:01
Post #2621





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



my scripts only require 1.5.0 but IIRC from a previous post, mire777 is using that hacked 1.4. something for aero.

edit: i've never encountered memory problems in 1.5.6 and i don't use garbage collection in any of my scripts. i'll try 1.5.4 to see if usage is lower??? unsure.gif

edit2: from the hints/tips...

QUOTE
11. Consider using Dispose() method instead of CollectGarbage() function.


i do use Dispose on images and menu items but that's it. i don't even know what else it can be used on??

This post has been edited by marc2003: Oct 20 2013, 09:25
Go to the top of the page
+Quote Post
Falstaff
post Oct 20 2013, 13:45
Post #2622





Group: Members
Posts: 2799
Joined: 12-November 06
Member No.: 37463



issue with v1.5.6 is only linked with timers use and refreshing on_paint, a kind of overflow may appear then and will make panels crash (not only the source one but other wsh panel mod that may use some graphics methods) and sometimes worth with a total lock/unresponse of foobar2000 itself.

it's extremely rare but it's happens if you do not take care. v1.5.4 is clear of this kind of issue.

it's just an information for those who may encounter a such issue, since T.P Wang is no more involved in this component.

New panel i'm working on: Album browser like itunes does, but better than the original in some ways (scroll, expands ...):



This post has been edited by Falstaff: Oct 20 2013, 13:48


--------------------
http://br3tt.online.fr/
Go to the top of the page
+Quote Post
marc2003
post Oct 20 2013, 14:03
Post #2623





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



my seekbars all user timers with an interval of 150 and they've been fine in 1.5.6 for me. i don't know how many other people use them but i've had no reports of any problems.

your new panel looks pretty cool. i assume it's getting colours from the album art? very clever. cool.gif
Go to the top of the page
+Quote Post
Falstaff
post Oct 20 2013, 14:07
Post #2624





Group: Members
Posts: 2799
Joined: 12-November 06
Member No.: 37463



happens with smaller interval size and heavy work on repaint. "Normal" scripts are not affected.

Yep, thanx, background color based on the cover color scheme, that's why i need v1.5.6 tongue.gif


--------------------
http://br3tt.online.fr/
Go to the top of the page
+Quote Post
marc2003
post Oct 20 2013, 15:58
Post #2625





Group: Members
Posts: 4466
Joined: 27-January 05
From: England
Member No.: 19379



samples updated:

CODE
7.2013-10-20.02

"Simple tag reader". Now displays a warning if foobar v1.3 is detected.
Because of internal changes made to the handling of extra long tags, this
script is unable to display them anymore. Depending on what happens with
foobar v1.3 final, I might remove the script entirely.

7.2013-10-20.01

"Now playing" & "Thumbs". Restore Last.fm image download
functionality. The only difference is that it's restricted to
a max limit of 5.


existing users: right click>Update script
full download: https://dl.dropboxusercontent.com/u/22801321/wsh/samples.zip
Go to the top of the page
+Quote Post

126 Pages V  « < 103 104 105 106 107 > » 
Reply to this topicStart new topic
5 User(s) are reading this topic (4 Guests and 0 Anonymous Users)
1 Members: foosion

 



RSS Lo-Fi Version Time is now: 18th September 2014 - 11:28