Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

|
|
Source code |
1 2 |
# Beispiel /VDR/etc/plugins/moronsuite;Cover;0;*.jpg *.JPG *.Jpg *.png *.PNG *.Png |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# Normally you only have to edit:
# - svdrp : path to "svdrpsend"
# - display : Display of X-Server on which coverchooser shall run (default is first Display)
# - mainprg : path to external coverdownloader ( default is coverchooser , take care that its installed correctly )
# maybe "flags" if you know hat cooverchooser will do for you
$artist = "$ARGV[0]";
$album = "$ARGV[1]";
$coverdir = "$ARGV[2]";
$tmpdir = "$ARGV[3]";
$maxdl = "$ARGV[4]";
$basedir = "$ARGV[5]";
$filename = "$ARGV[6]";
$tempdir = "$tmpdir/music_cover";
$nodata = "$tmpdir/music_nodata";
$logger = "$tempdir/cover.log";
$CMD = "";
$home = $ENV{"HOME"};
$svdrp = "/usr/bin/svdrpsend"
$display = "export DISPLAY=:0;"
$mainprg = "coverchooser"
$flags = "--artist=\"$artist\" --album=\"$album\" --path=\"$tempdir\" --all --ordered --module=discogs --module=lastfm --module=google --timeout=5 --verbose"
$chooserdir= "$home/.coverchooser/Temp";
|

(..und Leserechte. Coverviewer liest den Dateinamen aus der Logdatei fuers Speichern) |
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
NAME: music_getcover.pl - Perl Script to download coverpictures SYNOPSIS: music_getcover.pl 'artist' 'album' 'coverdir' 'tmpdir' 'maxdl' 'basedir' 'filename' DESCRIPTION: This Perl script makes it a lot easier (or not ;)) to fill your music collection with coverpictures. OPTIONS: artist = Artist of track album = Name of album coverdir = Path to artists cover directory tmpdir = Path where to save downloaded images maxdl = How much coverpicture do you want ? basedir = Path to track filename = Full path to track without suffix ---------------------------------------------------------------------------------------------- ====================== Coverdownload start here ===================== Running "coverchooser" with the options ['--artist=Blphaville', '--album=Gltching Rays On Giant (Deluxe Version)', '--path=/etc/vdr/plugins/moronsuite/music/downloads/music_cover', '--all', '--ordered', '--module=discogs', '--module=lastfm', '--module=google', '--timeout=5', '--verbose'] in verbose mode. The current settings are: get all : True preserve order : True show gui : False artist : Blphaville album : Gltching Rays On Giant (Deluxe Version) modules : ['discogs', 'lastfm', 'google'] timeout : 5.0 google : /home/vdruser/.coverchooser/Temp/Google_1329690344.jpg lastfm : /home/vdruser/.coverchooser/Temp/LastFM_1329690344.jpg Exception in thread discogs (job: search, query 1): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "/usr/share/coverchooser/coverchooser.py", line 81, in run talkback = self.doJob(job) File "/usr/share/coverchooser/coverchooser.py", line 103, in doJob ret = getattr(obj, job["do"])() File "/usr/share/coverchooser/modules/cc_module_discogs.py", line 115, in search query_xml = self.get_dom(self.get_query_url()) File "/usr/share/coverchooser/modules/cc_module_discogs.py", line 86, in get_dom if got_it: return minidom.parseString(data) File "/usr/lib/python2.7/xml/dom/minidom.py", line 1924, in parseString return expatbuilder.parseString(string) File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString return builder.parseString(string) File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) ExpatError: syntax error: line 1, column 0 Timeout ====================== Coverdownload end here ===================== result: 1 Cover download started ! Artist : Blphaville Album : Gltching Rays On Giant (Deluxe Version) Coverdir : /tmp Tmpdir : /etc/vdr/plugins/moronsuite/music/downloads Tempdir : /etc/vdr/plugins/moronsuite/music/downloads/music_cover Nodata : /etc/vdr/plugins/moronsuite/music/downloads/music_nodata MaxDL : 0 Logfile : /etc/vdr/plugins/moronsuite/music/downloads/music_cover/cover.log Chooserdir : /home/vdruser/.coverchooser/Temp <value> ARTIST =Blphaville <value> ALBUM =Gltching Rays On Giant (Deluxe Version) <value> COVERDIR =/tmp <value> BASEDIR =/data/Music/ <value> FILENAME =/data/Music/01 - Gong For No One. Entferne vorhandene Bilddateien Command: export DISPLAY=:0; /usr/bin/coverchooser --artist="Blphaville" --album="Gltching Rays On Giant (Deluxe Version)" --path="/etc/vdr/plugins/moronsuite/music/downloads/music_cover" --all --ordered --module=discogs --module=lastfm --module=google --timeout=5 --verbose Kopiere Datei: /home/vdruser/.coverchooser/Temp/Google_1329690344.jpg nach /etc/vdr/plugins/moronsuite/music/downloads/music_cover Kopiere Datei: /home/vdruser/.coverchooser/Temp/LastFM_1329690344.jpg nach /etc/vdr/plugins/moronsuite/music/downloads/music_cover Download von Cover erfolgreich ! |
Quoted
...es gibt nur noch ein paar Schönheitsfehler. Das Cover wird nicht im Hauptmenü des Music-Plugins (music-0.9.9-dev2) angezeigt, hier nur die Grafik "No Data". Ebenso beim Aufruf /blaue Taste "mehr", dann Grüne Taste "Cover".

|
|
Source code |
1 2 3 4 5 6 7 8 |
if($result>0) {
system("echo '\nDownload von Cover erfolgreich !\n' >> $logger");
system("$svdrp PLUG coverviewer PLAYDIR $tempdir");
}
else {
system("echo '\nERROR: Download von Cover NICHT erfolgreich !\n' >> $logger");
system("$svdrp PLUG coverviewer PLAYDIR $nodata");
}
|

This post has been edited 1 times, last edit by "steato" (Feb 20th 2012, 6:53am) with the following reason: komplett gescannt
Webstreams sollten keine Probleme bereiten.
Einfach mal ne URL hier posten , dann sag ich dir ob das klappt oder net