2014-09-15, 06:46
Hi,
This is a lot of first's for me (first addon, decent python prog, use of github, etc....) so bear with me. It is my attempt for this feature request
I wrote an addon to enhance Kodi. It removes some limitations of Kodi while using full-rip bluray iso's.
This addon allows the user to automatically select a stream/playlist on an BR iso by using a filename tag. Selecting a stream is already possible with Kodi. You can select a stream with the 'select playback item' window.
This works ok mostly, but in some use cases this isn't user friendly.
use case 1:
Theatrical and directors cut on the same bluray. Using this adon you can have 2 movie entries in the kodi db. The 'select playback item' window will show 2 (or more) streams, but which stream is the theatrical version, and which stream is the directors cut? Kodi will select the correct stream using this addon.
use case 2:
2 movies on the disc; examples are the 'Cinderella II & III' and the 'Nightmare on Elm Street' blu-ray box.
use case 3:
Some bluray discs show tens to maybe hundreds of streams in the 'select playback item' window. These streams are the same movie, but some scenes are placed out of order. This is used as some form of 'copyprotection/rip-protection'. It's difficult to remember which stream is the correct one, and even more difficult to explain to the wife/kids that they have to select stream 538 for this movie.
use case 4:
Some movies have a lot of extras, sometimes these extras get selected by Kodi as the main movie. This addon will allow to automatically select the right stream.
use case 5:
It's possible to play a trailer that is located on the bluray disc by selecting the stream.
use case 5:
Use full bluray rips from tv shows in Kodi. The correct stream will be played when your select an episode.
How to use this addon (warning: usage of the CLI is needed):
For movies
Bluray_Movies
=============
subdir 1: "movie X - Theatrical version" ; contains "movie X (year).Bluray.PlayList[12345].iso"
subdir 2: "movie X - Uncut version" ; contains "movie X (year).Bluray.PlayList[54321].iso"
The filetag ".PlayList[12345]." is important. 12345 or 54321 is ALWAYS 5 numbers. So if Kodi says it plays stream 1, the filetag needs to be ".PlayList[00001].".
Subdir 2 contains not a copy of the bluray iso. It contains a hardlink with a relative path to the real isofile in subdir 1. Otherwise you would need a lot of HD space to store al these full bluray iso copies.
Windows uses mklink, linux uses ln (wikipedia). These links need to be made on the computer that contains the HD where the movies are stored. So if you have an unraid server, you use ln in an telnet session to this unraid server; If you have a WHS2011, make the link while logged in to this WHS server, etc...
Bluray tv shows
==============
You have a dir in your main tv shows directory (named "TV-Show X"). Inside this "TV-Show X" dir are subdirs for "Season 1", "Season 2", etc...
Place the bluray file, with name eg "Show X.S01E01.S01E02.S01E03.S01E04.S01E05.iso in the root dir ("TV-Show X").
Now make a hardlink from in the "Season 1" directory to the iso file. So you would get the following files (hardlinks) in this ("Season 1") dir:
Show X.S01E01.PlayList[00001].iso
Show X.S01E02.PlayList[00002].iso
Show X.S01E03.PlayList[00003].iso
Show X.S01E04.PlayList[00004].iso
Show X.S01E05.PlayList[00005].iso
You have a dir in your main tv shows directory (named "TV-Show X"). Inside this "TV-Show X" dir are subdirs for "Season 1", "Season 2", etc...
Place the bluray file, with name eg "Show X.S01E01.S01E02.S01E03.S01E04.S01E05.iso in the root dir ("TV-Show X"). The playlist on the bluray is one single big stream for all the episodes (eg supernatural).
Now make a hardlink from in the "Season 1" directory to the iso file. So you would get the following files (hardlinks) in this ("Season 1") dir:
Show X.S01E01.PlayList[00001=00_00_00=00_45_00].iso
Show X.S01E02.PlayList[00002=00_45_01=01_30_00].iso
Show X.S01E03.PlayList[00003=01_30_01=02_15_00].iso
Show X.S01E04.PlayList[00004=02_15_01=03_00_00].iso
Show X.S01E05.PlayList[00005=03_00_01=03_45_00].iso
You have a dir in your main tv shows directory (named "TV-Show X"). Inside this "TV-Show X" dir are subdirs for "Season 1", "Season 2", etc...
Place the bluray file, with name eg "Show X.S01E01.S01E02.S01E03.S01E04.S01E05.iso in the root dir ("TV-Show X"). You don't want tot see the recap of the previous episode that is shows before each episode (each recap takes about 62 seconds).
Now make a hardlink from in the "Season 1" directory to the iso file. So you would get the following files (hardlinks) in this ("Season 1") dir:
Show X.S01E01.PlayList[00001-00_01_02].iso
Show X.S01E02.PlayList[00002-00_01_02].iso
Show X.S01E03.PlayList[00003-00_01_02].iso
Show X.S01E04.PlayList[00004-00_01_02].iso
Show X.S01E05.PlayList[00005-00_01_02].iso
Someone needs to search the correct stream numbers for the correct episode/movie/.... but this can be done by a knowledgeable user, the other users (wife/kids) can use this without further help.
Limitations:
While it does work on gotham, you still get the 'select playback item' window. Just press something, the addon wil choose the right stream. This should hopefully be solved with Helix (PR:5228).
Does not work yet with tv show blurays that have 1 single big stream for all the episodes. "Supernatural" is an example. I'll add that later. (edit: works from v0.0.4)
I also intend to adapt it so one can play multidisc bluray movies seamless. LOTR extended version comes to mind. It will be possible to play disc one, and the addon will automatically go to the correct stream on disc 2 when needed (this feature will have some limitations, mainly with seek).
Get it here: https://github.com/Wimpie-ccc/script.ser...hancements
Please try it out, and give feedback about bugs, needed adjustments or other comments
Thanks,
Wimpie
PS: I would like to thank Ace for his Language Preferences Manager. I used this as a base/skeleton to build this addon.
This is a lot of first's for me (first addon, decent python prog, use of github, etc....) so bear with me. It is my attempt for this feature request
I wrote an addon to enhance Kodi. It removes some limitations of Kodi while using full-rip bluray iso's.
This addon allows the user to automatically select a stream/playlist on an BR iso by using a filename tag. Selecting a stream is already possible with Kodi. You can select a stream with the 'select playback item' window.
This works ok mostly, but in some use cases this isn't user friendly.
use case 1:
Theatrical and directors cut on the same bluray. Using this adon you can have 2 movie entries in the kodi db. The 'select playback item' window will show 2 (or more) streams, but which stream is the theatrical version, and which stream is the directors cut? Kodi will select the correct stream using this addon.
use case 2:
2 movies on the disc; examples are the 'Cinderella II & III' and the 'Nightmare on Elm Street' blu-ray box.
use case 3:
Some bluray discs show tens to maybe hundreds of streams in the 'select playback item' window. These streams are the same movie, but some scenes are placed out of order. This is used as some form of 'copyprotection/rip-protection'. It's difficult to remember which stream is the correct one, and even more difficult to explain to the wife/kids that they have to select stream 538 for this movie.
use case 4:
Some movies have a lot of extras, sometimes these extras get selected by Kodi as the main movie. This addon will allow to automatically select the right stream.
use case 5:
It's possible to play a trailer that is located on the bluray disc by selecting the stream.
use case 5:
Use full bluray rips from tv shows in Kodi. The correct stream will be played when your select an episode.
How to use this addon (warning: usage of the CLI is needed):
For movies
Bluray_Movies
=============
subdir 1: "movie X - Theatrical version" ; contains "movie X (year).Bluray.PlayList[12345].iso"
subdir 2: "movie X - Uncut version" ; contains "movie X (year).Bluray.PlayList[54321].iso"
The filetag ".PlayList[12345]." is important. 12345 or 54321 is ALWAYS 5 numbers. So if Kodi says it plays stream 1, the filetag needs to be ".PlayList[00001].".
Subdir 2 contains not a copy of the bluray iso. It contains a hardlink with a relative path to the real isofile in subdir 1. Otherwise you would need a lot of HD space to store al these full bluray iso copies.
Windows uses mklink, linux uses ln (wikipedia). These links need to be made on the computer that contains the HD where the movies are stored. So if you have an unraid server, you use ln in an telnet session to this unraid server; If you have a WHS2011, make the link while logged in to this WHS server, etc...
Bluray tv shows
==============
You have a dir in your main tv shows directory (named "TV-Show X"). Inside this "TV-Show X" dir are subdirs for "Season 1", "Season 2", etc...
Place the bluray file, with name eg "Show X.S01E01.S01E02.S01E03.S01E04.S01E05.iso in the root dir ("TV-Show X").
Now make a hardlink from in the "Season 1" directory to the iso file. So you would get the following files (hardlinks) in this ("Season 1") dir:
Show X.S01E01.PlayList[00001].iso
Show X.S01E02.PlayList[00002].iso
Show X.S01E03.PlayList[00003].iso
Show X.S01E04.PlayList[00004].iso
Show X.S01E05.PlayList[00005].iso
You have a dir in your main tv shows directory (named "TV-Show X"). Inside this "TV-Show X" dir are subdirs for "Season 1", "Season 2", etc...
Place the bluray file, with name eg "Show X.S01E01.S01E02.S01E03.S01E04.S01E05.iso in the root dir ("TV-Show X"). The playlist on the bluray is one single big stream for all the episodes (eg supernatural).
Now make a hardlink from in the "Season 1" directory to the iso file. So you would get the following files (hardlinks) in this ("Season 1") dir:
Show X.S01E01.PlayList[00001=00_00_00=00_45_00].iso
Show X.S01E02.PlayList[00002=00_45_01=01_30_00].iso
Show X.S01E03.PlayList[00003=01_30_01=02_15_00].iso
Show X.S01E04.PlayList[00004=02_15_01=03_00_00].iso
Show X.S01E05.PlayList[00005=03_00_01=03_45_00].iso
You have a dir in your main tv shows directory (named "TV-Show X"). Inside this "TV-Show X" dir are subdirs for "Season 1", "Season 2", etc...
Place the bluray file, with name eg "Show X.S01E01.S01E02.S01E03.S01E04.S01E05.iso in the root dir ("TV-Show X"). You don't want tot see the recap of the previous episode that is shows before each episode (each recap takes about 62 seconds).
Now make a hardlink from in the "Season 1" directory to the iso file. So you would get the following files (hardlinks) in this ("Season 1") dir:
Show X.S01E01.PlayList[00001-00_01_02].iso
Show X.S01E02.PlayList[00002-00_01_02].iso
Show X.S01E03.PlayList[00003-00_01_02].iso
Show X.S01E04.PlayList[00004-00_01_02].iso
Show X.S01E05.PlayList[00005-00_01_02].iso
Someone needs to search the correct stream numbers for the correct episode/movie/.... but this can be done by a knowledgeable user, the other users (wife/kids) can use this without further help.
Limitations:
While it does work on gotham, you still get the 'select playback item' window. Just press something, the addon wil choose the right stream. This should hopefully be solved with Helix (PR:5228).
Does not work yet with tv show blurays that have 1 single big stream for all the episodes. "Supernatural" is an example. I'll add that later. (edit: works from v0.0.4)
I also intend to adapt it so one can play multidisc bluray movies seamless. LOTR extended version comes to mind. It will be possible to play disc one, and the addon will automatically go to the correct stream on disc 2 when needed (this feature will have some limitations, mainly with seek).
Get it here: https://github.com/Wimpie-ccc/script.ser...hancements
Please try it out, and give feedback about bugs, needed adjustments or other comments
Thanks,
Wimpie
PS: I would like to thank Ace for his Language Preferences Manager. I used this as a base/skeleton to build this addon.