Kodi Community Forum

Full Version: MediaElch - MediaManager for Mac/Linux/Win (with music library scraping)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Very nice software!
In the past I used https://thumbgen.codeplex.com/ with WDTV live...
Now with kodi, I wanted to find something with thumbGen options:
- choose between a huge amount of movies info site (french ones, spanish ones , english ones,...)
- select the folder (one with movies for the kids, one with anim for the kids, one with documentaries, one with live music concert, one with movies for the parents, ...) on which I want to find the info to make the nfo files and the posters
- select only the movies or anims, or documentaries, or... which don't have nfo file without listing all the library

the only way I found to be able to scrap a specific folder is to put the folder that I don't want as "tv series" for example and put the one I want to use as "movies" and then load that specific "folder library". But I find that too long and would have like to have a simple box to tick tu use the specific folder I want to load as library.

thanks
(2017-02-08, 17:38)shindou Wrote: [ -> ]Hi,
I have really enjoyed your app and have used it a great deal. I do have one question. there are some episodes (i.e. nameofshow.s01e00) according to imdb and tvdb that media elch does not recognize. Is there a way to get it to recognize these episodes so that I can load it on to kodi. If you could let me know that would be great.

Make sure your folder is named exactly like imdb or tvdb has them named.
Some shows like Archer I believe require you to have it named Archer (2009) to recognize it correctly.
Worse case scenario if it is not seeing it like it should then you can copy the id number and put that in place of the title and it should find what you need.
You will see this number as part of the URL for example Archer is 110381
Star Wars A New Hope is tt0076759

edit>>>after reading your post a second time it seems you are having trouble with only a specific episode?
If that's the case I don't think I've ever had that issue... if it recognizes the show then it gets it all.

One other thing you can check is the dropbox on the bottom... make sure you have episodes selected to scrape and not 'Update TV show only'
I have tried all of those things and have actually found the episode on imdb and tvdb and it does not find it. The episode is endeavour s01e00. The imdb series id number is tt2701582 and the episode id number is tt2039333 and the tvdb is 4232986. I've tried inputting them manually into mediaelch as well and it does not find it. I've even tried making a .nfo file myself without much luck.
If that's a special it needs to be in a Season 0 folder...
If you ever need help naming episodes, just go to the source...
http://thetvdb.com/?tab=season&seriesid=...1706&lid=7

As you see, Endeavour s01e00 is listed as a special. So if you go to the special list for Endeavour...
http://thetvdb.com/?tab=season&seriesid=...1705&lid=7

You see that episode is called "Pilot".

Now if you read the Kodi wiki...
http://kodi.wiki/view/naming_video_files/TV_shows

You will see that "Special Episodes" need to be placed under Season 0.

So in your case you will rename that episode Endeavour S00E01, and it needs to be placed in the Season 0 folder (so make that if you don't have it already).
Thanks Powerhouse... obviously by my previous post I knew about the Season 0 folder but and couldn't even guess how many years I've been using TVDB for this or the countless 1000's of times I've referenced it for who knows how many shows... I've NEVER noticed that specials link before the seasons... I've basically made my own nfo's all these years.... WTF!!!

Thanks for teach an old dog a new trick!... renaming Season 0 files as we speak...
2 weeks later still no music support. Been down what, 3 weeks ? 1 month? Are there alternatives til MediaElch? I just use it to scrape artwork for my music collection on _artists only_ to have local artwork when Kodi starts scraping. Kodi wipes the chosen artwork/thumbs on artists each time it scrapes.

(2017-02-01, 14:10)huttdes Wrote: [ -> ]February 1st.... still no music support...
I posted a fix for Komet in their forums just now, but if you're willing to compile yourself...

Code:
--- scrapers/UniversalMusicScraper.cpp.orig    2017-02-13 09:10:26.305679745 -0600
+++ scrapers/UniversalMusicScraper.cpp    2017-02-13 09:15:08.765686791 -0600
@@ -69,8 +69,9 @@

void UniversalMusicScraper::searchArtist(QString searchStr)
{
-    QUrl url(QString("http://www.musicbrainz.org/ws/2/artist/?query=artist:\"%1\"").arg(QString(QUrl::toPercentEncoding(searchStr))));
+    QUrl url(QString("http://musicbrainz.org/ws/2/artist/?query=artist:\"%1\"").arg(QString(QUrl::toPercentEncoding(searchStr))));
     QNetworkRequest request(url);
+    request.setRawHeader("User-Agent" , "MediaElch");
     QNetworkReply *reply = qnam()->get(request);
     new NetworkReplyWatcher(this, reply);
     connect(reply, SIGNAL(finished()), this, SLOT(onSearchArtistFinished()));
@@ -119,8 +120,10 @@
     artist->clear(infos);
     artist->setMbId(mbId);
     artist->setAllMusicId("");
-    QUrl url(QString("http://www.musicbrainz.org/ws/2/artist/%1?inc=url-rels").arg(mbId));
-    QNetworkReply *reply = qnam()->get(QNetworkRequest(url));
+    QUrl url(QString("http://musicbrainz.org/ws/2/artist/%1?inc=url-rels").arg(mbId));
+    QNetworkRequest request(url);
+    request.setRawHeader("User-Agent" , "MediaElch");
+    QNetworkReply *reply = qnam()->get(request);
     reply->setProperty("storage", Storage::toVariant(reply, artist));
     reply->setProperty("infosToLoad", Storage::toVariant(reply, infos));
     connect(reply, SIGNAL(finished()), this, SLOT(onArtistRelsFinished()));
@@ -303,8 +306,9 @@
     QString searchQuery = "release:\"" + QString(QUrl::toPercentEncoding(cleanSearchStr)) + "\"";
     if (!artistName.isEmpty())
         searchQuery += "%20AND%20artist:\"" + QString(QUrl::toPercentEncoding(artistName)) + "\"";
-    QUrl url(QString("http://www.musicbrainz.org/ws/2/release/?query=%1").arg(searchQuery));
+    QUrl url(QString("http://musicbrainz.org/ws/2/release/?query=%1").arg(searchQuery));
     QNetworkRequest request(url);
+    request.setRawHeader("User-Agent" , "MediaElch");
     QNetworkReply *reply = qnam()->get(request);
     new NetworkReplyWatcher(this, reply);
     connect(reply, SIGNAL(finished()), this, SLOT(onSearchAlbumFinished()));
@@ -386,8 +390,10 @@
     album->setMbAlbumId(mbAlbumId);
     album->setMbReleaseGroupId(mbReleaseGroupId);
     album->setAllMusicId("");
-    QUrl url(QString("http://www.musicbrainz.org/ws/2/release/%1?inc=url-rels+labels+artist-credits").arg(mbAlbumId));
-    QNetworkReply *reply = qnam()->get(QNetworkRequest(url));
+    QUrl url(QString("http://musicbrainz.org/ws/2/release/%1?inc=url-rels+labels+artist-credits").arg(mbAlbumId));
+    QNetworkRequest request(url);
+    request.setRawHeader("User-Agent" , "MediaElch");
+    QNetworkReply *reply = qnam()->get(request);
     new NetworkReplyWatcher(this, reply);
     reply->setProperty("storage", Storage::toVariant(reply, album));
     reply->setProperty("infosToLoad", Storage::toVariant(reply, infos));

Looks like it broke because MusicBrainz started requiring a UserAgent with all API requests. The URL changes aren't actually necessary, but it saves needless redirects for every musicbrainz api request.

Update: Updated patch
(2017-02-13, 17:08)garretn Wrote: [ -> ]I posted a fix for Komet in their forums just now, but if you're willing to compile yourself...

What exactly are we supposed to do with that?
(2017-02-13, 19:21)huttdes Wrote: [ -> ]
(2017-02-13, 17:08)garretn Wrote: [ -> ]I posted a fix for Komet in their forums just now, but if you're willing to compile yourself...

What exactly are we supposed to do with that?

Like I said, if you're willing to compile MediaElch from source you can apply that patch to the source code first. Otherwise you'll have to wait for Komet to include the fix and post a new build (if he does).

Let me rephrase... I knew what you meant. I'm just not sure how to do it.
I did recompile MAME once a while back but also had a step by step to follow...
If you have the time for a little more assistance that would be greatly appreciated...
I'm afraid I'm a linux user personally, so I'm really ill suited to be able to help there.

MediaElch itself is a Qt application and comes with a project file, and it itself requires Qt5 so if you want to attempt it, you could probably get by by just googling how to set up QtCreator w/Qt5 and compile a project.
(2017-02-04, 01:04)mhaaland Wrote: [ -> ]You can try playing with this. It's old but I'm having some moderate success.

http://forum.kodi.tv/showthread.php?tid=...pid1828818

Wow, I'm amazed your still having some success with it. I actually stopped development on Symphony when music functionality was added to Media Elch, but unfortunately that doesn't appear to be working any more.

If there is no news on an update/fix for MediaElch, I might look at re-writing Symphony.
(2017-02-21, 01:59)Ethyria Wrote: [ -> ]
(2017-02-04, 01:04)mhaaland Wrote: [ -> ]You can try playing with this. It's old but I'm having some moderate success.

http://forum.kodi.tv/showthread.php?tid=...pid1828818

Wow, I'm amazed your still having some success with it. I actually stopped development on Symphony when music functionality was added to Media Elch, but unfortunately that doesn't appear to be working any more.

If there is no news on an update/fix for MediaElch, I might look at re-writing Symphony.

That would be awesome... I can't believe that all the metadata scrapers don't support music...
If I get some time today I'll see if I can get windows compiling working in a VM. I doubt Komet would appreciate me releasing the donators-only releases, so I'll see if my patches work fine against the github version.