Skip to content

Commit

Permalink
fixed python3 conversion error
Browse files Browse the repository at this point in the history
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Navigation.py", line 86, in dispatchEvent
  File "/usr/lib/enigma2/python/Components/ServiceEventTracker.py", line 82, in event
  File "/usr/lib/enigma2/python/Plugins/Extensions/MerlinMusicPlayer/plugin.py", line 1179, in __evUpdatedInfo
  File "/usr/lib/enigma2/python/Plugins/Extensions/MerlinMusicPlayer/plugin.py", line 1204, in updateMusicInformation
  File "/usr/lib/enigma2/python/Plugins/Extensions/MerlinMusicPlayer/plugin.py", line 1252, in updateCover
  File "/usr/lib/enigma2/python/Plugins/Extensions/MerlinMusicPlayer/plugin.py", line 1272, in getGoogleCover
  File "/usr/lib/python3.9/site-packages/twisted/python/deprecate.py", line 298, in deprecatedFunction
  File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 814, in getPage
  File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 760, in _makeGetterFactory
  File "/usr/lib/python3.9/site-packages/twisted/web/_newclient.py", line 634, in _ensureValidURI
TypeError: cannot use a bytes pattern on a string-like object
[ePyObject] (CallObject(<bound method Navigation.dispatchEvent of <Navigation.Navigation object at 0xb35f08c8>>,(5,)) failed)
  • Loading branch information
WanWizard committed Aug 31, 2023
1 parent e29cda8 commit 5470f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merlinmusicplayer/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ def updateSingleMusicInformation(self, name, info, clear):
def getGoogleCover(self, artist, album):
if artist != "" and album != "":
url = 'https://www.google.de/search?q=%s+%s+-youtube&tbm=isch&source=lnt&tbs=isz:ex,iszw:500,iszh:500' % (quote(album), quote(artist))
getPage(url, timeout=10, agent='Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17').addCallback(self.googleImageCallback).addErrback(self.coverDownloadFailed)
getPage(url.encode('utf-8'), timeout=10, agent='Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17').addCallback(self.googleImageCallback).addErrback(self.coverDownloadFailed)
else:
self["coverArt"].showDefaultCover()

Expand Down

0 comments on commit 5470f0b

Please sign in to comment.