[Solved] Prettifying filenames

Discuss media renderers like Xbox 360, TVs, smartphones, etc.
User avatar
KONTROLMASTER
Posts: 36
Joined: Wed Aug 06, 2014 6:54 am
Location: Rusteam
Contact:

[Solved] Prettifying filenames

Post by KONTROLMASTER »

The function is not correctly working with some filenames, for example, it won't displays a full name for an episode for TV series. Or shows the wrong bugged same duplicate name for the file, which is in another language than English, while using automatic file rename program software on PC.
User avatar
KONTROLMASTER
Posts: 36
Joined: Wed Aug 06, 2014 6:54 am
Location: Rusteam
Contact:

Re: Prettifying filenames

Post by KONTROLMASTER »

Also some of the transcoded files can't be marked as watched!
User avatar
KONTROLMASTER
Posts: 36
Joined: Wed Aug 06, 2014 6:54 am
Location: Rusteam
Contact:

Re: Prettifying filenames

Post by KONTROLMASTER »

Sometimes these names are updating, reverting back as for the DB, when "Cache Media" setting is disabled, just accidentially checked it!
User avatar
KONTROLMASTER
Posts: 36
Joined: Wed Aug 06, 2014 6:54 am
Location: Rusteam
Contact:

Re: Prettifying filenames

Post by KONTROLMASTER »

And also, the last but not the least, I also noticed that the "Web Content" group on the Shared/Navigation tab is very outdated and bugged from the user interface, when removing just one title, it's all gone, but could bring back if you add the new link. But you can just see the all previous entitles, no matter even if you changed it in the WEB.conf file!!
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Prettifying filenames

Post by SubJunk »

KONTROLMASTER wrote: Mon Mar 22, 2021 3:54 am The function is not correctly working with some filenames, for example, it won't displays a full name for an episode for TV series. Or shows the wrong bugged same duplicate name for the file, which is in another language than English, while using automatic file rename program software on PC.
Can you please provide an example of a filename that goes wrong?
User avatar
KONTROLMASTER
Posts: 36
Joined: Wed Aug 06, 2014 6:54 am
Location: Rusteam
Contact:

Re: Prettifying filenames

Post by KONTROLMASTER »

SubJunk wrote: Thu Mar 25, 2021 6:51 pm
KONTROLMASTER wrote: Mon Mar 22, 2021 3:54 am The function is not correctly working with some filenames, for example, it won't displays a full name for an episode for TV series. Or shows the wrong bugged same duplicate name for the file, which is in another language than English, while using automatic file rename program software on PC.
Can you please provide an example of a filename that goes wrong?
Will this be displayed in the logs?
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Prettifying filenames

Post by SubJunk »

Yes but you would need to tell me which filenames are wrong in the logs so I can look at them
User avatar
KONTROLMASTER
Posts: 36
Joined: Wed Aug 06, 2014 6:54 am
Location: Rusteam
Contact:

Re: Prettifying filenames

Post by KONTROLMASTER »

According to the last version, the function whipes out tv series names, for example "Transformers Super-God Masterforce - 1x01 - Rise up, Pretenders!" It displays just "Transformers Super-God Masterforce". And that's all! It's very old problem for me with the prettifying, as far as I remember. Also have duplicates if I use file renaming bot program, as mentioned before, for russian (or maybe other foreign) language, when loading one folder, it copies these names for another with this language, but it's two different TV Series! Also, but, I think it's forever legacy problem, the last hevc-mkv format for new series or episodes with forced subtitles won't work with ffmpeg, it's only working stand-alone. ps Update. Just checked! For the current version the problem with duplicates gone, only have this bug with a short name for which I talked before !

https://mega.nz/file/JdI3QCzK#q48qzBMx9 ... jzXOZnSPx0
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Prettifying filenames

Post by SubJunk »

It looks like the local database is corrupted, the logs show lots of these:

Code: Select all

org.h2.jdbc.JdbcSQLNonTransientConnectionException: Файл поврежден при чтении строки: null. Возможные решения: используйте утилиту восстановления (recovery tool)
File corrupted while reading record: null. Possible solution: use the recovery tool [90030-199]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:617)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:427)
	at org.h2.message.DbException.get(DbException.java:194)
	at org.h2.mvstore.db.MVTableEngine$Store.convertIllegalStateException(MVTableEngine.java:205)
	at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:173)
	at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:95)
	at org.h2.engine.Database.getPageStore(Database.java:2739)
	at org.h2.engine.Database.open(Database.java:769)
	at org.h2.engine.Database.openDatabase(Database.java:319)
	at org.h2.engine.Database.<init>(Database.java:313)
	at org.h2.engine.Engine.openSession(Engine.java:69)
	at org.h2.engine.Engine.openSession(Engine.java:201)
	at org.h2.engine.Engine.createSessionAndValidate(Engine.java:178)
	at org.h2.engine.Engine.createSession(Engine.java:161)
	at org.h2.engine.Engine.createSession(Engine.java:31)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:336)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:169)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:148)
	at org.h2.Driver.connect(Driver.java:69)
	at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:189)
	at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:352)
	at org.h2.jdbcx.JdbcDataSource.getPooledConnection(JdbcDataSource.java:384)
	at org.h2.jdbcx.JdbcConnectionPool.getConnectionNow(JdbcConnectionPool.java:234)
	at org.h2.jdbcx.JdbcConnectionPool.getConnection(JdbcConnectionPool.java:199)
	at net.pms.dlna.DLNAMediaDatabase.getConnection(DLNAMediaDatabase.java:203)
	at net.pms.dlna.DLNAMediaDatabase.isAPIMetadataExists(DLNAMediaDatabase.java:501)
	at net.pms.dlna.DLNAResource.setMetadataFromFileName(DLNAResource.java:4907)
	at net.pms.dlna.DLNAResource.syncResolve(DLNAResource.java:1393)
	at net.pms.dlna.DLNAResource.run(DLNAResource.java:1194)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Can you try to rename your database folder in C:\ProgramData\UMS\ ? Close UMS, then rename the folder to "database2", and start UMS so the database is regenerated
User avatar
KONTROLMASTER
Posts: 36
Joined: Wed Aug 06, 2014 6:54 am
Location: Rusteam
Contact:

Re: Prettifying filenames

Post by KONTROLMASTER »

Did it about twice, but this won't solve these short names! Only if the option is turned off and when the database is not in use. As far as remember for some previous releases it was ok.
Post Reply