Kodi Community Forum

Full Version: Show the name of the country instead of these codes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can one show the name of the country instead of these codes:
Image
which scraper do you use? as far as I can see XWG is no valid country code.

at the moment the country field inside tmm has no specified format (it is a simple text field which holds the values from the scraper).
I may have a look if it is possible to parse out the localized country names from the scraper values for display
"xwg" means West Germany in IMDb (http://www.imdb.com/country/xwg ) though it's not listed in their country code list (https://contribute.imdb.com/updates/guide/iso_country ). There's also "xyu" that means Yugoslavia (http://www.imdb.com/country/xyu ). Their code list states the code as "yucs", but some of my Yugo movies got "xyu" value with IMDb scraper.

Yes, it would be great if TMM can display and export spelled-out country name instead of the code.
Made an option on TMDB & IMDB scraper, whether to scrape the ISO code, or the language/country name (localized, if possible) = now default
(since it is a free editable, multi value text field, we simply cannot translate this later in GUI)
Check scraper settings on tomorrow's nightly build...
Thanks! Both scrapers are working great!

But there's a problem with this build: it can't import some existing movies in the source folder:

Code:
ERROR [tmmpool-main-task-thread-6] o.t.core.threading.TmmThreadPool:110 - ThreadPool update: Error getting result!
java.util.concurrent.ExecutionException: java.lang.ClassCastException: org.tinymediamanager.core.movie.entities.Movie cannot be cast to java.lang.Comparable
    at java.util.concurrent.FutureTask.report(Unknown Source)
    at java.util.concurrent.FutureTask.get(Unknown Source)
    at org.tinymediamanager.core.threading.TmmThreadPool.waitForCompletionOrCancel(TmmThreadPool.java:104)
    at org.tinymediamanager.core.movie.tasks.MovieUpdateDatasourceTask2.doInBackground(MovieUpdateDatasourceTask2.java:172)
    at org.tinymediamanager.core.threading.TmmTask.run(TmmTask.java:122)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: org.tinymediamanager.core.movie.entities.Movie cannot be cast to java.lang.Comparable
    at java.util.ComparableTimSort.countRunAndMakeAscending(Unknown Source)
    at java.util.ComparableTimSort.sort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at java.util.concurrent.CopyOnWriteArrayList.sort(Unknown Source)
    at java.util.Collections.sort(Unknown Source)
    at org.tinymediamanager.core.Utils.sortList(Utils.java:1507)
    at org.tinymediamanager.core.movie.entities.MovieSet.sortMovies(MovieSet.java:274)
    at org.tinymediamanager.core.movie.MovieList.sortMoviesInMovieSet(MovieList.java:1082)
    at org.tinymediamanager.core.movie.tasks.MovieUpdateDatasourceTask2.createMultiMovieFromDir(MovieUpdateDatasourceTask2.java:722)
    at org.tinymediamanager.core.movie.tasks.MovieUpdateDatasourceTask2.access$100(MovieUpdateDatasourceTask2.java:81)
    at org.tinymediamanager.core.movie.tasks.MovieUpdateDatasourceTask2$parseMultiMovieDirTask.call(MovieUpdateDatasourceTask2.java:274)
    at org.tinymediamanager.core.movie.tasks.MovieUpdateDatasourceTask2$parseMultiMovieDirTask.call(MovieUpdateDatasourceTask2.java:260)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    ... 3 common frames omitted
a new build is out which fixes this problem
Yep, that fixed it. Thanks a lot!
Quote:a new build is out which fixes this problem
Great, thank you very much, mlaggner!
It appears, it still looks like it was before, or is this the correct display:
Image
We haven't released it yet;
Currently only available in nightly builds...
Alright, thank you.