quatre1love 3 Posted September 4, 2020 Share Posted September 4, 2020 (edited) Hi, I found out a interesting bug, which is connect with the "part naming rules". When I scan the file naming with PPT-XXX(XXX will be the numbers), it will be identified in to the part rules, seems identified to P"PT-XXX". The mistake identify cause the movie canot match its nfo. These naming part may under the closed source code, I can't find any to fix it by myself. Hope you can give some help on this problem. After I check the log, the current rule should be below: [NFO, parts] (.*?)([ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck])[ _.-]*[0-9]+)(.*?)(\.[^.]+)$ matched And output in debug is below: 2020-09-04 02:44:39.864 Debug App: [NFO, parts] (.*?)([ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck])[ _.-]*[0-9]+)(.*?)(\.[^.]+)$ matched We can see that PPT name was eaten by the wrong rules. KIND REGARDS. Edited September 4, 2020 by quatre1love Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 7, 2020 Author Share Posted September 7, 2020 Any Emby devlopers can help to fix this error? Link to comment Share on other sites More sharing options...
Luke 37007 Posted September 10, 2020 Share Posted September 10, 2020 HI there, yes we can look at this. What changes did you make to the expression? Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 11, 2020 Author Share Posted September 11, 2020 Hi Luke, I am waiting for your reply for a week. But still thanks you decided to solve this problem. Here is my solution for the current expression, but I can't make sure it is working smooth for all other situations. Please have a test, if any other problems apperared, do not hesitate to contact me. (.*[^ _.-])([ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck])[ _.-]*\d{1,2}(?=[^\d]))(.*?)(\.[^.]+)$ Link to comment Share on other sites More sharing options...
Luke 37007 Posted September 11, 2020 Share Posted September 11, 2020 What are some example file names? Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 12, 2020 Author Share Posted September 12, 2020 In my case, you can see the screenshot, which file name is "PPT-045.mp4", "PPT-079.mp4" Link to comment Share on other sites More sharing options...
Luke 37007 Posted September 12, 2020 Share Posted September 12, 2020 Ok i tested this but it didn't actually change the outcome. Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 12, 2020 Author Share Posted September 12, 2020 Do you mean it still output the wrong identified part with my provided expression? Could you please paste the log to me? Link to comment Share on other sites More sharing options...
Luke 37007 Posted September 12, 2020 Share Posted September 12, 2020 I don't have a server log. I'm just testing the regex externally with c# against your sample file name. Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 12, 2020 Author Share Posted September 12, 2020 PPT-045_118ppt000045-part1.mp4 PPT-079_118ppt00079-part1.mp4 Please try these two as the file name. Sorry for my understand mistake before. Link to comment Share on other sites More sharing options...
Luke 37007 Posted September 12, 2020 Share Posted September 12, 2020 Ok but those actually have part1 at the end. How is the parsing supposed to know not to merge these as multi-part? This looks like a personalized change based on your file names, no? Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 12, 2020 Author Share Posted September 12, 2020 The file name is from the original download, it should has 8 hours time length, so it be splited to 3 parts. I found this problem when I scan them into the new library, that the current emby naming identify expression would identify "PPT" as "part". Link to comment Share on other sites More sharing options...
Happy2Play 8242 Posted September 12, 2020 Share Posted September 12, 2020 Split video files (file stacking) The following are default stacking extensions that can be added to file names. # can be 1 through 9 or A through D. Stacking is supported for video files (but only when each video is in its own folder as in the example below) as well as dvd and blu-ray folder structures. part# cd# dvd# pt# disk# disc# So you are saying Emby is using pt# from the Naming instead of the trailing -part#? Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 12, 2020 Author Share Posted September 12, 2020 Yes Happy2Play, your understand is correct. This is the problem I met. Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 12, 2020 Author Share Posted September 12, 2020 25 minutes ago, Happy2Play said: Split video files (file stacking) The following are default stacking extensions that can be added to file names. # can be 1 through 9 or A through D. Stacking is supported for video files (but only when each video is in its own folder as in the example below) as well as dvd and blu-ray folder structures. part# cd# dvd# pt# disk# disc# So you are saying Emby is using pt# from the Naming instead of the trailing -part#? Yes Happy2Play, your understand is correct. This is the problem I met. Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 13, 2020 Author Share Posted September 13, 2020 21 hours ago, Luke said: Ok but those actually have part1 at the end. How is the parsing supposed to know not to merge these as multi-part? This looks like a personalized change based on your file names, no? Hi Luke, I hope you read the reply from Happy2Play, his explanation is more understandable. Did you do any test and how is it going? Link to comment Share on other sites More sharing options...
Luke 37007 Posted September 13, 2020 Share Posted September 13, 2020 I haven't had a chance to circle back to it yet. Thanks. Link to comment Share on other sites More sharing options...
quatre1love 3 Posted September 13, 2020 Author Share Posted September 13, 2020 5 minutes ago, Luke said: I haven't had a chance to circle back to it yet. Thanks. May I know, do you welling to work out this bug? when it can be fixed? Link to comment Share on other sites More sharing options...
paranoidkev 2 Posted December 9, 2020 Share Posted December 9, 2020 (edited) On 9/12/2020 at 9:08 AM, quatre1love said: PPT-045_118ppt000045-part1.mp4 PPT-079_118ppt00079-part1.mp4 Please try these two as the file name. Sorry for my understand mistake before. I love this actress I started using Emby recently for this "genre". I ended up just merging all of these split files. Ended up much nicer than split files. Edited December 9, 2020 by paranoidkev Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now