conTEXT

Amarok 1.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

This script looks for text or html files in the playing directory and (optionally) web reviews for the currently playing album. On success it inserts them in a new manageable box into the context browser.

To access the review search menu, move your mouse over the conTEXT icon in the lower right corner of the context browser. Here you can click a site name to start a single search, or select sites for auto-search (which will be triggered when the album changes or the script is restarted). Found reviews are stored in the file's directory by default.

Amarok 2 version: http://kde-apps.org/content/show.php?content=159427
Last changelog:

6 years ago

2010.11.17: 2q
2010.01.09: 2p
2010.01.01: 2o
2009.04.12: 2n
2008.01.02: 2m
2007.11.02: 2l
2007.08.17: 2k
2007.02.26: 2j
2007.02.19: 2i
2007.02.04: 2h
2006.12.28: 2g
2006.12.27: 2f
2006.09.14: 2e
2006.09.05: 2d
2006.08.21: 2c
2006.08.20: 2a, 2b

q: fixed allmusic, metacritic, pitchfork, rollingstone (but they seem to remove older reviews) and laut.de
p: fixed metacritic empty pages; more progressiveworld hits;
o: fixed metacritic, progressiveworld; removed broken searches: bbc,dis,nme,stylus; funny new experimental feature: mouseover cover will show the large version
n: fixed most review sites (e.g. bbc, cduniverse, dis, pitchfork, plattentests.de, punkbands, rollingstone,...search and/or display faults)
m: fixed nme, disabled playlouder; fixed some links inside reviews; improved allmusic, bbc, dis, guardian, laut, metacritic and stylus display (e.g. no site-specific fonts anymore)
l: added cduniverse.com; fixed punkbands.com; fixed pitchfork header display
k: fixed fast scrolling for new khtml versions; fixed playlouder.com; fixed rollingstone display; fixed plattentests.de referenzen
j: Added a button to search all (or all marked) sites manually (no need to restart the script anymore); Clicking the conTEXT icon now toggles the popup menu; Removed a popup warning which appeared when playback was stopped while searching;
i: Fix/workaround for the bug that prevented conTEXT from starting (when the name of the previously displayed text file contained a foreign character);
h: added icons to the search/popup menu for opening the currently loaded text file in KDE's default application (for editing) and for deleting (trashing)
g: added graphical scroll arrows with "jump to top/bottom" functionality, improved rollingstone.com interface
f: added metacritic.com, fixed bbc.co.uk
e: small fixes for allmusic, playlouder, stylus
d: added allmusic.com
d: fixed laut.de
d: improved drownedinsound hit rate
c: for txt files:
... wrap at context browser width
... don't use monospace font
... disable the "auto-shrink box" feature for short files when in scroll mode
b: removed a call to saveCurrentPlaylist (which makes Amarok hang for large playlists and was seemingly able to kill conTEXT)
b: set a timeout of 10 seconds for search requests
b: avoid temp files to be written to home directory when KDE session is quit with Amarok still running
a: quick fix to make it work (at least not exit) with last.fm streams (you can't have more than one review at a time yet)

2006.08.19: 2
manual or automatic album review search at various sites (11 english, 2 german)
remember scrolling position on song change
links are opened in external browser (which you set in amarok configuration)

2006.06.03: 1
initial release

ssri

8 years ago

Seems like allmusic.com went to a new format for their reviews now...

Report

C

camico

8 years ago

fixed now! (and a lot more)

Report

ssri

8 years ago

cool, thanx for the updates! :)

Report

yfph

10 years ago

Is this script going to be ported to amarok 2.0? I haven't used 2.0 since one of the late betas. From that brief exposure, I quickly ran back to 1.4.10. I do not think I can use amarok2.0 without this script. Nothing I have seen from the devs approaches the features here. Thanks again for your awesome work.

Report

C

camico

10 years ago

since i am also still using amarok 1.4 and don't plan to make the switch soon, and furthermore a complete rewrite will be necessary...i'm afraid this won't happen soon, sorry.

Report

kdefish

10 years ago

hmm, this is sad. I'm a happy Amarok2 user and really miss this script. Still no plans to part this over to A2? :(

Report

C

camico

6 years ago

here you go :)
http://kde-apps.org/content/show.php?content=159427

Report

C

camico

6 years ago

ok, another 4 years are gone and finally i started to port it over to amarok 2 :)

luckily i won't have to rewrite everything after all. but the first release will open a separate window unfortunately (just like the 'Rating statistics' script for example) because there doesn't seem to be any other way currently.

Report

yfph

10 years ago

Thanks for the reply. I am still using amarok 1.4.10, and I do not plan to change soon either. I just wanted to check to see the develop plans for this particular script. Thanks again for this script!

Report

yfph

10 years ago

Great work! I'm wondering if you can add amazon.com reviews to your list. Also, I have a few reviews stored in the comment field of my mp3s/flacs. Is it possible to add them in the script for display? Thanks!

Report

C

camico

10 years ago

making the comment field appear in conTEXT is an interesting idea, but you can already show it in the playlist and hovering over it will show the complete text (ok, maybe not the same comfort).
i'll see what i can do regarding amazon when i find the time. should be no problem.

Report

janberk

11 years ago

would it be too hard to add cduniverse.com reviews also? reviews in this web site clearly lists the personnel in the album first. then follows the critics of the album. indispensable for a jazz listener.

thanks,
janberk

Report

C

camico

11 years ago

not at all :)

Report

janberk

11 years ago

thanks a lot. great work. appreciations for your effort.

janberk

Report

Sebien

12 years ago

Nice idea to have HTML files in the album folder.

And a lot nicer to be able to retreive critics from the Web.

IMHO, you should contact the Amarok developers.

With their version 2.0, they are putting the context view at the center of the application, so such information can be very very handy to fill the area with more useful information, and "redicover our music".

I'm sure they will be interested to integrate this plugin by default, or at least include it in the application, even if it is not enabled by default.

Report

C

camico

12 years ago

thanks for the kind words, however the amarok crew knows about this script, so i guess they would contact me if they were interested :)

Report

kdefish

12 years ago

an option to edit the txt files right in the amarok box, or at least a right-click option to open an editor! ;)

Report

C

camico

12 years ago

there you go :)
the foreign character problem is still there though, sorry... if any python expert can help me with that, please drop me a mail

Report

kdefish

12 years ago

an empty reply? uhh...

great work, thanks! :)

Report

kdefish

12 years ago

Report

kdefish

12 years ago

ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
ERROR:ContextBrowserUpdater: Something wrong in context browser monitor, process stopped 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128) exceptions.UnicodeDecodeError
Traceback (most recent call last):
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 85, in run
try: self._run()
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 113, in _run
self.has_injected = self.performInjection() # do once when we start
File "/home/fish/.kde/share/apps/amarok/scripts/conTEXT/ContextBrowserUpdater.py", line 288, in performInjection
jscode = self.jscode%( boxpadding, filetexts, filenames,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)

No idea what's going on here but suddenly your script does not work anymore... :(

Report

saladasalad

12 years ago

Do you know about metacritic.com? Maybe you could incorporate that into the script somehow. Great script BTW, one of my favourites.

Report

C

camico

12 years ago

ok, why not :)

Report

profoX

12 years ago

Great script :) enjoying it alot lately

Report

reggler

13 years ago

Ey,

Thank you for the fix, it now seems to work fine without crashing but where is the info supposed to be disdplayed? I cannot see anything and i set the sources to 'Auto'. What am i missing? Thank you!

Report

6 years ago

2010.11.17: 2q
2010.01.09: 2p
2010.01.01: 2o
2009.04.12: 2n
2008.01.02: 2m
2007.11.02: 2l
2007.08.17: 2k
2007.02.26: 2j
2007.02.19: 2i
2007.02.04: 2h
2006.12.28: 2g
2006.12.27: 2f
2006.09.14: 2e
2006.09.05: 2d
2006.08.21: 2c
2006.08.20: 2a, 2b

q: fixed allmusic, metacritic, pitchfork, rollingstone (but they seem to remove older reviews) and laut.de
p: fixed metacritic empty pages; more progressiveworld hits;
o: fixed metacritic, progressiveworld; removed broken searches: bbc,dis,nme,stylus; funny new experimental feature: mouseover cover will show the large version
n: fixed most review sites (e.g. bbc, cduniverse, dis, pitchfork, plattentests.de, punkbands, rollingstone,...search and/or display faults)
m: fixed nme, disabled playlouder; fixed some links inside reviews; improved allmusic, bbc, dis, guardian, laut, metacritic and stylus display (e.g. no site-specific fonts anymore)
l: added cduniverse.com; fixed punkbands.com; fixed pitchfork header display
k: fixed fast scrolling for new khtml versions; fixed playlouder.com; fixed rollingstone display; fixed plattentests.de referenzen
j: Added a button to search all (or all marked) sites manually (no need to restart the script anymore); Clicking the conTEXT icon now toggles the popup menu; Removed a popup warning which appeared when playback was stopped while searching;
i: Fix/workaround for the bug that prevented conTEXT from starting (when the name of the previously displayed text file contained a foreign character);
h: added icons to the search/popup menu for opening the currently loaded text file in KDE's default application (for editing) and for deleting (trashing)
g: added graphical scroll arrows with "jump to top/bottom" functionality, improved rollingstone.com interface
f: added metacritic.com, fixed bbc.co.uk
e: small fixes for allmusic, playlouder, stylus
d: added allmusic.com
d: fixed laut.de
d: improved drownedinsound hit rate
c: for txt files:
... wrap at context browser width
... don't use monospace font
... disable the "auto-shrink box" feature for short files when in scroll mode
b: removed a call to saveCurrentPlaylist (which makes Amarok hang for large playlists and was seemingly able to kill conTEXT)
b: set a timeout of 10 seconds for search requests
b: avoid temp files to be written to home directory when KDE session is quit with Amarok still running
a: quick fix to make it work (at least not exit) with last.fm streams (you can't have more than one review at a time yet)

2006.08.19: 2
manual or automatic album review search at various sites (11 english, 2 german)
remember scrolling position on song change
links are opened in external browser (which you set in amarok configuration)

2006.06.03: 1
initial release

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) MD5SUM Version Description Downloads Date Filesize DL OCS-Install
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
2q
updated Jun 29 2013
added Jun 02 2006
downloads 24h
0
page views 24h 2
System Tags addon