2012-08-30, 17:52
This post is for those of you who are seeing duplicate movies in their library when two of the parts have different file extensions, like this:
movie.name.cd1.avi
movie.name.cd2.wmv
I had the same problem, and after banging my head against the wall for two days straight I figured out a couple of ways to make this work.
After looking at the wiki page about file stacking, and checking this post, it seemed like adding a couple lines to the advancedsettings.xml file was the way to go. Unfortunately, that post fell short of actually having a working regex, but it was close.
The wiki states that:
And it worked... for the most part. Unfortunately, it seems like movies that end in wmv would still be separated, even though the regex was only different by the volume like the rules say. For whatever reason, it works if the last file is not wmv, or maybe it needs to be the same format as the first part. I didn't test that too thoroughly, because it was easy to work around.
All I did for the problematic movies, was to create a very tiny mkv file and relabel it as cd1 and cd# so that it "wrapped" the other files. Using the above example, it would look like this:
movie.name.cd1.mkv
movie.name.cd2.avi
movie.name.cd3.wmv
movie.name.cd4.mkv
Why mkv? I highly doubt it matters, as long as the first part and last part are the same. I had just been working with some mp4 wrapped in mkv stuff earlier so it was easiest to test, and it worked.
Other tips:
Hopefully this post saves someone else the time I wasted figuring it out. If someone has a better way to handle this, feel free to this.
movie.name.cd1.avi
movie.name.cd2.wmv
I had the same problem, and after banging my head against the wall for two days straight I figured out a couple of ways to make this work.
After looking at the wiki page about file stacking, and checking this post, it seemed like adding a couple lines to the advancedsettings.xml file was the way to go. Unfortunately, that post fell short of actually having a working regex, but it was close.
The wiki states that:
Quote:4. For each consecutive filename where all tokens except Volume match, the file's index in the file list is stored in a vector.So rather than move the Extension part of the regex to the Ignore section, I moved it to the Volume section. After some trial and error I got this:
Code:
<moviestacking action="append">
<regexp>(.*?)([ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck]|d)[ _.-]*[0-9]+.*?)()()$</regexp>
</moviestacking>
And it worked... for the most part. Unfortunately, it seems like movies that end in wmv would still be separated, even though the regex was only different by the volume like the rules say. For whatever reason, it works if the last file is not wmv, or maybe it needs to be the same format as the first part. I didn't test that too thoroughly, because it was easy to work around.
All I did for the problematic movies, was to create a very tiny mkv file and relabel it as cd1 and cd# so that it "wrapped" the other files. Using the above example, it would look like this:
movie.name.cd1.mkv
movie.name.cd2.avi
movie.name.cd3.wmv
movie.name.cd4.mkv
Why mkv? I highly doubt it matters, as long as the first part and last part are the same. I had just been working with some mp4 wrapped in mkv stuff earlier so it was easiest to test, and it worked.
Other tips:
- Make sure the first part of the movie name is exact! Sometimes the simplest answer is the best one
- Originally I was going to mux the different formats using mkvmerge so they all had the same file type. This works, but unfortunately wmv can't be muxed into mkv
Hopefully this post saves someone else the time I wasted figuring it out. If someone has a better way to handle this, feel free to this.