KodiTips Forums

mp3 streams

kittyneil

  • 1
  • +0/-0
    • View Profile
mp3 streams
« on: August 02, 2017, 05:55:54 am »
hi, can anyone help search not working on mp3 streams

coxie2

  • 6
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #1 on: August 10, 2017, 08:28:37 am »
I too am having that problem. I found that if you go into artist, you can scrool through the various list of artist and can add them from there. It is a real pain, but there is a way. Not sure what happened with search but the add-on probably won't be updated which is sad.

GOAT

  • 10
  • +2/-0
    • View Profile
Re: mp3 streams
« Reply #2 on: August 10, 2017, 11:33:22 am »
You can fix this yourself by editing the file default.py within plugin.audio.mp3streams:

Simply do a Find/Replace of "http://musicmp3" and replace with "http://mp3music".  If you don't include the "http://" in your find/replace, searches will work, but you will break the link to play the MP3s.

The searches should work again, and many lists that weren't working should work again.

coxie2

  • 6
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #3 on: August 10, 2017, 11:47:57 pm »
GOAT I tried searching for the "http://musicmp3" but found nothing. After looking at the file, all the entries had .ru after them http://musicmp3.ru. Is this the one to change. If not, please advise where to locate in default.py. thanks

GOAT

  • 10
  • +2/-0
    • View Profile
Re: mp3 streams
« Reply #4 on: August 11, 2017, 04:11:20 pm »
GOAT I tried searching for the "http://musicmp3" but found nothing. After looking at the file, all the entries had .ru after them http://musicmp3.ru. Is this the one to change. If not, please advise where to locate in default.py. thanks

Yes, those are the ones to change.  I was intending for you to use an editor like UltraEdit and do an automatic Find/Replace, but if you want to go through manually, you can.  The reason I included the "http://" is that you don't want to replace the ones that are "listen.musicmp3.ru", because that will break playback.

coxie2

  • 6
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #5 on: August 11, 2017, 09:56:13 pm »
GOAT  This so I am on the same page as you, I need to replace "http://musicmp3.ru" with "http://mp3music.ru" ?  And a replace will change all of the entries in the file ? Sorry for the trouble, but I don't want to mess up the addon so that it does not function. It is one of my favorite addons.  thanks

GOAT

  • 10
  • +2/-0
    • View Profile
Re: mp3 streams
« Reply #6 on: August 11, 2017, 11:24:22 pm »
GOAT  This so I am on the same page as you, I need to replace "http://musicmp3.ru" with "http://mp3music.ru" ?  And a replace will change all of the entries in the file ? Sorry for the trouble, but I don't want to mess up the addon so that it does not function. It is one of my favorite addons.  thanks

Correct.  That will fix search, but break the "Artists", "Top Artists" and "New Albums" sections.  If you can find the addDir commands  for those sections in the code, keep them at musicmp3.ru. 

The Billboard Charts section also doesn't work because the billboard.com site has changed.  Some regex work is needed there, and I haven't looked at it in depth.

Foxymoron

  • 1
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #7 on: August 19, 2017, 12:15:53 am »
Hi there, I'm a newbie! Would like to fix the search function. Keen to follow your instructions but I don't even know where to start! I've looked in settings but can't figure out how to find the files I need to replace! help!!

coxie2

  • 6
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #8 on: August 19, 2017, 05:46:46 am »
Foxy  What type of device are you running Kodi on ?  You will be looking for the default.py file within the mp3 streams folder of the kodi addon data. Without knowing what type of device not sure where to have you look.  Also what version of Kodi ?  I have yet to try this fix, but it seems as though it may work. I am sure GOAT will respond with helpful info, just give him time.

alhe

  • 1
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #9 on: August 19, 2017, 03:37:56 pm »
\addons\plugin.audio.mp3streams\default.py
from Line 84, # to comment out unwanted main menu options:
def CATEGORIES():
    addDir('Artists','http://musicmp3.ru/artists.html',21,art + 'artists.jpg','')
    addDir('Top Albums','http://musicmp3.ru/genres.html',12,art + 'topalbums.jpg','')
    addDir('New Albums','http://musicmp3.ru/new_albums.html',12,art + 'newalbums.jpg','')
    addDir('Compilations','url',400,'','')
#    addDir('Billboard Charts','url',101,art + 'billboardcharts.jpg','')
    addDir('Search Artists','url',24,art + 'searchartists.jpg','')
#    addDir('Search Albums','url',24,art + 'searchalbums.jpg','')
#    addDir('Search Songs','url',24,art + 'searchsongs.jpg','')
    addDir('Favourite Artists','url',63,art + 'favouriteartists.jpg','')
    addDir('Favourite Albums','url',66,art + 'favouritealbums.jpg','')
    addDir('Favourite Songs','url',69,art + 'favouritesongs.jpg','')
#    addDirAudio('Instant Mix Favourite Songs (Shuffle and Play)','url',99,art + 'mixfavouritesongs.jpg','','','','','')
#    addDirAudio('Instant Mix Favourite Albums (Shuffle and Play)','url',89,art + 'mixfavouritealbums.jpg','','','','','')
    addDirAudio('Clear Playlist','url',100,art + 'clearplaylist.jpg','','','','','')
    addDirAudio('Add ID3 Tags','url',300,art + 'addid3tags.jpg','','','','','')
#    addDir('Browse Alternate Source','url',700,artgenre + 'alternate.jpg','')

from Line 272, change both musicmp3.ru entries to mp3music.ru to fix Artists Search:
def search_artists(query):
    url = 'http://musicmp3.ru/search.html?text=%s&all=artists' % urllib.quote_plus(query)
    link = GET_url(url)
    all_artists = re.compile('<a class="artist_preview__title" href="(.+?)">(.+?)[/url]').findall(link)
    for url1, title in all_artists:
        icon_path = os.path.join(ARTIST_ART, title + '.jpg')
        if os.path.exists(icon_path):
            iconimage = icon_path
        else:
            iconimage = iconart
        addDir(title.replace('&amp;', 'and'),'http://musicmp3.ru' + url1,22,iconimage,'artists')

If you're using an Android box, you could use adbLink to connect to it and use the 'File manager' option to 'pull' back the file 'default.py' from the Kodi data folder, make the appropriate changes, then 'push' the file back. If you're unsure how to do this, I'm sure there are UTube vids showing you how.
I edited the file using Notepad++ to remove some main menu items I don't/won't use and just fixed the Artists search function.
Thanks to GOAT for the URL fix info.

donlizard

  • 1
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #10 on: August 28, 2017, 04:18:52 am »
I've Modified the default.py to the point where all the following work ...

Artists, Top Albums, New Albums, Search Artists, Search Albums, Search Songs all work fine!
When you search songs, the song comes up and you can play it.
When you search an artist the albums come up, no problem.

When you click on an album it will ask to browse or play, neither come up with a play list or play.

So close to having it all work!

Any fix for this?


GOAT

  • 10
  • +2/-0
    • View Profile
Re: mp3 streams
« Reply #11 on: August 31, 2017, 01:24:27 pm »
Pretty much everything has stopped working, and I have determined that it is due to minor changes in the coding of the website that the addon pulls the data from.  The fixes are minor, but plentiful.  I don't have time to go through it all and test fixes right now, and once repaired a full release would be necessary, because there will likely be changes all over the code.  This addon is definitely not dead, but is going to need some tweaking to get working again, as well as a repo willing to host it.

tn76com

  • 9
  • +1/-2
    • View Profile
    • Kodi Download
Re: mp3 streams
« Reply #12 on: August 31, 2017, 07:23:12 pm »
 ;)
hi, can anyone help search not working on mp3 streams mp3 streams kodi

When you click on an album it will ask to browse or play, neither come up with a play list or play.


http://seek4codes.blogspot.com/2017/08/mp3-streams-kodi.html.

scorsese

  • 2
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #13 on: September 09, 2017, 12:32:26 am »
It is down

GOAT

  • 10
  • +2/-0
    • View Profile
Re: mp3 streams
« Reply #14 on: September 09, 2017, 08:21:16 am »
There's a fixed version in Q's repo

coxie2

  • 6
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #15 on: September 20, 2017, 03:07:37 am »
Hey GOAT    Got the addon working although there are very few minor things not working. Updated with the 09-09 version. I have updated on all my devises, all running Kodi 17.4. Have it on a win 8.1, firestick, android tablets, and a Mi Box. On my Win 7 pc I cannot get it to work. I checked the log and it has some errors with the MP3 Streams addon. i am not much into the programing side and cannot figure the error out. I have deleted Kodi altogether and re installed Kodi and used the 9-09 version as on the other devices and still no luck. Any ideas ?  Here is a link to the log from my win 7 machine.  Any help would be appreciated !

https://paste.ubuntu.com/25574950/

GOAT

  • 10
  • +2/-0
    • View Profile
Re: mp3 streams
« Reply #16 on: September 20, 2017, 10:11:20 am »
Hey GOAT    Got the addon working although there are very few minor things not working. Updated with the 09-09 version. I have updated on all my devises, all running Kodi 17.4. Have it on a win 8.1, firestick, android tablets, and a Mi Box. On my Win 7 pc I cannot get it to work. I checked the log and it has some errors with the MP3 Streams addon. i am not much into the programing side and cannot figure the error out. I have deleted Kodi altogether and re installed Kodi and used the 9-09 version as on the other devices and still no luck. Any ideas ?  Here is a link to the log from my win 7 machine.  Any help would be appreciated !

https://paste.ubuntu.com/25574950/

There is an error when it attempts to open a URL.  This SSL error was supposed to be fixed in Kodi 17.  Does Kodi have internet access when you run MP3Streams?  Also possible, but unlikely, that the Ares Wizard is messing with something.

coxie2

  • 6
  • +0/-0
    • View Profile
Re: mp3 streams
« Reply #17 on: September 21, 2017, 02:13:47 am »
GOAT  Thank for the quick response. Yes Kodi has internet access. I use IPVanish, but have tried to use MP3Streams with IPV both on and off. I will uninstall Ares Wiz and work from there. I may have to take the win 7 machine back to virgin state and start from scratch, which I really don't want to, but it has been a couple of years and probably needs done. Just them dang windows updates for an older os.  Thanks again, I figured if anyone could help, I would be you. Wish me luck !!