Jump to content

Emby doesn't respect folder location like 4.5.4.0


gokuz

Recommended Posts

gokuz
3 minutes ago, rodainas said:

 

Script to modify the nfo files with the new season and episodes (just put all the renamed nfos on the same folder and run the script).

Command line to batch remove the original season and episode lines that you dont want emby to read (again command line to batch edit all the nfos, the same as above all the nfos in the same folder and apply the command)

 

 

Using your script doesn't give all the goodies NFO brings, like plot, air data.

How do you introduce this back in after creating new NFO?

Link to comment
Share on other sites

Emby respect folder location.  You just have a misconception what it's used for.

Folder is used to help IDENTIFY and episode, done.
Meta-Data Editor is used for editing what is displayed, done.

Is that clear yet?

Folder does not contribute to the order your files are displayed.  That is the job of the meta-data.  This is what everyone keeps telling you and why every says to clean up your meta-data.  This is what matters not the folders.

Emby does not work the way you think it does.  It does not honor folder location in the way you think it does.  Emby honors meta-data!!!

Link to comment
Share on other sites

gokuz
3 minutes ago, roaku said:

you can't admit that you discovered and exploited a bug in those versions.

wdym? Already admitted this since first post.

4 minutes ago, roaku said:

You can't come up with any logical reason why those versions *should* have done that.

Explained in multiple times but I guess you missed it, I'll explain again just for you,

All of my series are organized in a way that it would be ease of use to watch anime. Like Detective Conan = 25 years since 1996-2020.

 

Link to comment
Share on other sites

gokuz
4 minutes ago, cayars said:

Emby respect folder location.  You just have a misconception what it's used for.

Folder is used to help IDENTIFY and episode, done.
Meta-Data Editor is used for editing what is displayed, done.

Is that clear yet?

Folder does not contribute to the order your files are displayed.  That is the job of the meta-data.  This is what everyone keeps telling you and why every says to clean up your meta-data.  This is what matters not the folders.

Emby does not work the way you think it does.  It does not honor folder location in the way you think it does.  Emby honors meta-data!!!

So what's the purpose in me sending you the MKV files to you?

I asked you multiple times why I needed to send it to you but you refused to answer so I just sent it to see what you did.

You did exactly what I expected, manually changing episodes by hand. I have said multiple times that I would not be able to manually change it. Thousands of episodes, I only have 2 hands.

7 minutes ago, cayars said:

Emby does not work the way you think it does.  It does not honor folder location in the way you think it does.  Emby honors meta-data!!!

Try it in 4.5.4.0, you will see different results.

Link to comment
Share on other sites

GrimReaper

As a sidenote, was there any progress made on this:

https://emby.media/community/index.php?/topic/90022-tmdb-add-the-episode-group-feature-into-emby/

He might find his grouping (or close enough) somewhere in here:

https://www.themoviedb.org/tv/30983-case-closed/episode_groups?language=en-EN

Kodi seems to have it implemented quite elegantly for some time now:

https://forum.kodi.tv/showthread.php?tid=338467

tvshow.nfo with group URL, sounds simple eneough.

Link to comment
Share on other sites

You actually gain next to nothing with this whole season shenanigan reorganization.  For the most you would be watching these episodes in the same order regardless of what season they are in.

It would be far easier to only adjust episode that may differ.

Link to comment
Share on other sites

gokuz
4 minutes ago, cayars said:

You actually gain next to nothing with this whole season shenanigan reorganization.  For the most you would be watching these episodes in the same order regardless of what season they are in.

It would be far easier to only adjust episode that may differ.

It would be even easier to stay on 4.5.4.0 and wait for a fix.

Link to comment
Share on other sites

1 minute ago, gokuz said:

So what's the purpose in me sending you the MKV files to you?

I asked you multiple times why I needed to send it to you but you refused to answer so I just sent it to see what you did.

As I said so I could load them on my system using them as a dummy file since I don't have this series.

That allowed me to load them.  Have Emby fetch all the art and meta-info.
I then just changed the episode and season number where needed. That took all of 5 minutes to do.

Link to comment
Share on other sites

rodainas

The script works

you just need to modify the last part

HERE

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.10.0
 Author:   Jester Mgee

 Script Function:
    This script is designed to create a simple .NFO file for video files. The script is hard coded to work on files with the following format names:

    Show Name - SSxEE - Episode Title.ext

    The Episode Title, Season Number (SS) and Episode Number (EE) will all be extracted and entered into an NFO file that will be created in the folder
    with the video files.

    The script is run from within the folder that NFO files are to be generated and will process the formats of files listed in the script.
    IF an NFO file already resides in the directory it will be replaced automatically.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#include <file.au3>
#include <array.au3>
Global $aravifiles, $file, $title, $season, $episode
$avidir = @ScriptDir
$nfodir = @ScriptDir

; Process 3 character extension files
;get avi files
$aravifiles = _FileListToArray ($avidir, "*.avi", 1)
_processfilename3()
;get mpg files
$aravifiles = _FileListToArray ($avidir, "*.mpg", 1)
_processfilename3()
;get wmv files
$aravifiles = _FileListToArray ($avidir, "*.mpg", 1)
_processfilename3()
;get mkv files
$aravifiles = _FileListToArray ($avidir, "*.mkv", 1)
_processfilename3()

; Process 4 character extension files
$aravifiles = _FileListToArray ($avidir, "*.divx", 1)
_processfilename4()
$aravifiles = _FileListToArray ($avidir, "*.mpeg", 1)
_processfilename4()
$aravifiles = _FileListToArray ($avidir, "*.mt2s", 1)
_processfilename4()

; Function for 3 character filenames (avi; mpg; wmv; mkv)
Func _processfilename3()
;Loop over array with filenames
For $i = 1 To UBound ($aravifiles) - 1
    ;Cut 4 char from the right -> get rid of extension and set new extension
    $file = $nfodir & "\" & StringTrimRight ($aravifiles [$i], 4) & ".nfo"
    ;Split Avi Filename by -
    $temp = StringSplit ($aravifiles [$i], " - ", 1)
    ;_ArrayDisplay ($temp, "StringSplit - File Name")
    ;last element is title -> get rid of extension and rid of leading space
    $title = StringTrimRight ($temp [3], 4)
    ;title and episode is split of 2 nd element of 1st stringsplit, splitting by x
    $temp1 = StringSplit ($temp [2], "x", 1)
    ;_ArrayDisplay ($temp1, "StringSplit - Season / Episode")
    ;season is last elemnt of split, get rid of spaces
    $season = StringStripWS ($temp1 [1], 😎
    ;episode is 1st elemnt of split, get rid of spaces
    $episode = StringStripWS ($temp1 [2], 😎
    ;write nfo file
    _writenfo ()
Next
EndFunc

; Function for 3 character filenames (divx; mpeg; mt2s)
Func _processfilename4()
;Loop over array with filenames
For $i = 1 To UBound ($aravifiles) - 1
    ;Cut 5 char from the right -> get rid of extension and set new extension
    $file = $nfodir & "\" & StringTrimRight ($aravifiles [$i], 5) & ".nfo"
    ;Split Avi Filename by -
    $temp = StringSplit ($aravifiles [$i], " - ", 1)
    ;_ArrayDisplay ($temp, "StringSplit - File Name")
    ;last element is title -> get rid of extension and rid of leading space
    $title = StringTrimRight ($temp [3], 5)
    ;title and episode is split of 2 nd element of 1st stringsplit, splitting by x
    $temp1 = StringSplit ($temp [2], "x", 1)
    ;_ArrayDisplay ($temp1, "StringSplit - Season / Episode")
    ;season is last elemnt of split, get rid of spaces
    $season = StringStripWS ($temp1 [1], 😎
    ;episode is 1st elemnt of split, get rid of spaces
    $episode = StringStripWS ($temp1 [2], 😎
    ;write nfo file
    _writenfo ()
Next
EndFunc

Func _writenfo ()
    If FileExists ($file) Then FileWriteLine ($file, "<episodedetails>")
    ;chr (9) is a TAB
    FileWriteLine ($file, Chr (9) & "<title>" & $title & "</title>")
    FileWriteLine ($file, Chr (9) & "<rating>5.0</rating>")
    FileWriteLine ($file, Chr (9) & "<season>" & $season & "</season>")
    FileWriteLine ($file, Chr (9) & "<episode>" & $episode & "</episode>")
    FileWriteLine ($file, Chr (9) & "<plot>Auto-Generated NFO File.</rating>")
    FileWriteLine ($file, Chr (9) & "<credits>Jester Mgee Systems</credits>")
    FileWriteLine ($file, Chr (9) & "<director></director>")
    FileWriteLine ($file, Chr (9) & "<aired></aired>")
    FileWriteLine ($file, Chr (9) & "<actor>")
    FileWriteLine ($file, Chr (9) & Chr (9) &"<name></name>")
    FileWriteLine ($file, Chr (9) & Chr (9) &"<role></role>")
    FileWriteLine ($file, Chr (9) & Chr (9) &"<thumb></thumb>")
    FileWriteLine ($file, Chr (9) & "</actor>")
    FileWriteLine ($file, "</episodedetails>")
EndFunc

 

Output result will be, you see, just remove the original lines and leave the new ones at the end with the cli command.

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--created on 2021-03-24 11:18:59 - tinyMediaManager 3.1.10-->
<episodedetails>
  <title>El Papa Cazador de brujas (Innocentius)</title>
  <originaltitle/>
  <showtitle>A Certain Magical Index</showtitle>
  <season>1</season>
  <episode>2</episode>
  <displayseason>-1</displayseason>
  <displayepisode>-1</displayepisode>
  <id>395179</id>
  <uniqueid default="true" type="tvdb">395179</uniqueid>
  <ratings>
    <rating default="true" max="10" name="tvdb">
      <value>8.7</value>
      <votes>196</votes>
    </rating>
  </ratings>
  <userrating>0.0</userrating>
  <plot>El mago se llama Styil Magnus que pertenece a la iglesia anglicana. Una vez acabado su presentación, Styil ataca a Touma con magia de fuego; sin embargo Touma lo anula con su mano derecha, luego Styil invico a Innocentius, un gigante de fuego capaz de carbonicar todo lo que lo rodea. Con la ayuda de Index, a pesar de estar inconsciente, Touma , utilizando su ingenio, pudo derrotar a Styil. Después, Index necesitaba ayuda médica, así que la llevó donde Komoe, su profesora, para curarla con magia , pero el debe abandonar el lugar, si no la magia no funcionaria solo con su presencia, dejando a Index en manos de su profesora.</plot>
  <runtime>0</runtime>
  <mpaa/>
  <premiered>2008-10-12</premiered>
  <aired>2008-10-12</aired>
  <watched>false</watched>
  <playcount/>
  <studio/>
  <credits>赤星政尚</credits>
  <director>錦織博</director>
  <trailer/>
  <dateadded>2021-03-24 10:56:15</dateadded>
  <epbookmark/>
  <code/>
  <fileinfo>
    <streamdetails>
      <video>
        <codec>HEVC</codec>
        <aspect>1.78</aspect>
        <width>1920</width>
        <height>1080</height>
        <durationinseconds>1422</durationinseconds>
        <stereomode/>
      </video>
      <audio>
        <codec>Opus</codec>
        <language>jpn</language>
        <channels>2</channels>
      </audio>
      <audio>
        <codec>Opus</codec>
        <language>eng</language>
        <channels>2</channels>
      </audio>
      <subtitle>
        <language>eng</language>
      </subtitle>
      <subtitle>
        <language>eng</language>
      </subtitle>
      <subtitle>
        <language>spa</language>
      </subtitle>
      <subtitle>
        <language>spa</language>
      </subtitle>
      <subtitle>
        <language>fra</language>
      </subtitle>
      <subtitle>
        <language>deu</language>
      </subtitle>
      <subtitle>
        <language>ita</language>
      </subtitle>
      <subtitle>
        <language>por</language>
      </subtitle>
      <subtitle>
        <language>pol</language>
      </subtitle>
      <subtitle>
        <language>tur</language>
      </subtitle>
      <subtitle>
        <language>swe</language>
      </subtitle>
      <subtitle>
        <language>dan</language>
      </subtitle>
      <subtitle>
        <language>fin</language>
      </subtitle>
      <subtitle>
        <language>nld</language>
      </subtitle>
      <subtitle>
        <language>nor</language>
      </subtitle>
      <subtitle>
        <language>rus</language>
      </subtitle>
      <subtitle>
        <language>hun</language>
      </subtitle>
      <subtitle>
        <language>ell</language>
      </subtitle>
      <subtitle>
        <language>heb</language>
      </subtitle>
      <subtitle>
        <language>ara</language>
      </subtitle>
      <subtitle>
        <language>ron</language>
      </subtitle>
      <subtitle>
        <language>ces</language>
      </subtitle>
      <subtitle>
        <language>jpn</language>
      </subtitle>
    </streamdetails>
  </fileinfo>
  <!--tinyMediaManager meta data-->
  <source>UNKNOWN</source>
  <original_filename>[Judas] Toaru Majutsu no Index - S01E02.mkv</original_filename>
  <user_note/>
</episodedetails>
<episodedetails>
    <title>El Papa Cazador de brujas (Innocentius)</title>
    <rating>5.0</rating>
    <season>02</season>
    <episode>05</episode>
    <plot>Auto-Generated NFO File.</rating>
    <credits>Jester Mgee Systems</credits>
    <director></director>
    <aired></aired>
    <actor>
        <name></name>
        <role></role>
        <thumb></thumb>
    </actor>
</episodedetails>
 

Edited by rodainas
Link to comment
Share on other sites

gokuz
2 minutes ago, cayars said:

As I said so I could load them on my system using them as a dummy file since I don't have this series.

That allowed me to load them.  Have Emby fetch all the art and meta-info.
I then just changed the episode and season number where needed. That took all of 5 minutes to do.

Try changing the whole thing, I'd imagine it will take you 10 minutes?

Link to comment
Share on other sites

roaku
5 minutes ago, gokuz said:

wdym? Already admitted this since first post.

No. You insist the bug is with 4.6. The only version that puts your episodes exactly where you tell it to.

Quote

Explained in multiple times but I guess you missed it, I'll explain again just for you,

All of my series are organized in a way that it would be ease of use to watch anime. Like Detective Conan = 25 years since 1996-2020.

No. I'm not asking for you to explain the end result you want. That makes perfect sense.

I'm asking you to justify why the Emby devs should restore a bug because you don't feel like correcting your metadata to accurately reflect what you want Emby to do with your episodes.

Emby already does what you want. All you have to do is tell it to do it.

Link to comment
Share on other sites

Just now, gokuz said:

It would be even easier to stay on 4.5.4.0 and wait for a fix.

A Fix for what?  I just showed you it works.

We are not going to build something to do what you have.  It's completely illogical for starters, it doesn't follow our naming guide, it doesn't use our tools properly.

As everyone has told you. Your data is a mess. You can't present season/episode info to Emby 4 different ways and expect any outcome except a mess.

Link to comment
Share on other sites

1 minute ago, roaku said:

I'm asking you to justify why the Emby devs should restore a bug because you don't feel like correcting your metadata to accurately reflect what you want Emby to do with your episodes.

Emby already does what you want. All you have to do is tell it to do it.

^^^ This!!!

Link to comment
Share on other sites

gokuz
5 minutes ago, roaku said:

I'm asking you to justify why the Emby devs should restore a bug because you don't feel like correcting your metadata to accurately reflect what you want Emby to do with your episodes.

If its truly a bug like you said, has it affected you or anyone in this forum.

Why not?

Link to comment
Share on other sites

gokuz
5 minutes ago, cayars said:

A Fix for what?  I just showed you it works.

We are not going to build something to do what you have.  It's completely illogical for starters, it doesn't follow our naming guide, it doesn't use our tools properly.

As everyone has told you. Your data is a mess. You can't present season/episode info to Emby 4 different ways and expect any outcome except a mess.

Show me you done the whole zip file I sent you.

Link to comment
Share on other sites

GrimReaper
1 minute ago, gokuz said:

If its truly a bug like you said, has it affected you or anyone in this forum.

Why not?

By definition: "A software bug is an error, flaw or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways." 

It doesn't have to affect anyone, it still doesn't make it any less true. 

Link to comment
Share on other sites

gokuz
10 minutes ago, rodainas said:

The script works

you just need to modify the last part

HERE

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.10.0
 Author:   Jester Mgee

 Script Function:
    This script is designed to create a simple .NFO file for video files. The script is hard coded to work on files with the following format names:

    Show Name - SSxEE - Episode Title.ext

    The Episode Title, Season Number (SS) and Episode Number (EE) will all be extracted and entered into an NFO file that will be created in the folder
    with the video files.

    The script is run from within the folder that NFO files are to be generated and will process the formats of files listed in the script.
    IF an NFO file already resides in the directory it will be replaced automatically.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#include <file.au3>
#include <array.au3>
Global $aravifiles, $file, $title, $season, $episode
$avidir = @ScriptDir
$nfodir = @ScriptDir

; Process 3 character extension files
;get avi files
$aravifiles = _FileListToArray ($avidir, "*.avi", 1)
_processfilename3()
;get mpg files
$aravifiles = _FileListToArray ($avidir, "*.mpg", 1)
_processfilename3()
;get wmv files
$aravifiles = _FileListToArray ($avidir, "*.mpg", 1)
_processfilename3()
;get mkv files
$aravifiles = _FileListToArray ($avidir, "*.mkv", 1)
_processfilename3()

; Process 4 character extension files
$aravifiles = _FileListToArray ($avidir, "*.divx", 1)
_processfilename4()
$aravifiles = _FileListToArray ($avidir, "*.mpeg", 1)
_processfilename4()
$aravifiles = _FileListToArray ($avidir, "*.mt2s", 1)
_processfilename4()

; Function for 3 character filenames (avi; mpg; wmv; mkv)
Func _processfilename3()
;Loop over array with filenames
For $i = 1 To UBound ($aravifiles) - 1
    ;Cut 4 char from the right -> get rid of extension and set new extension
    $file = $nfodir & "\" & StringTrimRight ($aravifiles [$i], 4) & ".nfo"
    ;Split Avi Filename by -
    $temp = StringSplit ($aravifiles [$i], " - ", 1)
    ;_ArrayDisplay ($temp, "StringSplit - File Name")
    ;last element is title -> get rid of extension and rid of leading space
    $title = StringTrimRight ($temp [3], 4)
    ;title and episode is split of 2 nd element of 1st stringsplit, splitting by x
    $temp1 = StringSplit ($temp [2], "x", 1)
    ;_ArrayDisplay ($temp1, "StringSplit - Season / Episode")
    ;season is last elemnt of split, get rid of spaces
    $season = StringStripWS ($temp1 [1], 😎
    ;episode is 1st elemnt of split, get rid of spaces
    $episode = StringStripWS ($temp1 [2], 😎
    ;write nfo file
    _writenfo ()
Next
EndFunc

; Function for 3 character filenames (divx; mpeg; mt2s)
Func _processfilename4()
;Loop over array with filenames
For $i = 1 To UBound ($aravifiles) - 1
    ;Cut 5 char from the right -> get rid of extension and set new extension
    $file = $nfodir & "\" & StringTrimRight ($aravifiles [$i], 5) & ".nfo"
    ;Split Avi Filename by -
    $temp = StringSplit ($aravifiles [$i], " - ", 1)
    ;_ArrayDisplay ($temp, "StringSplit - File Name")
    ;last element is title -> get rid of extension and rid of leading space
    $title = StringTrimRight ($temp [3], 5)
    ;title and episode is split of 2 nd element of 1st stringsplit, splitting by x
    $temp1 = StringSplit ($temp [2], "x", 1)
    ;_ArrayDisplay ($temp1, "StringSplit - Season / Episode")
    ;season is last elemnt of split, get rid of spaces
    $season = StringStripWS ($temp1 [1], 😎
    ;episode is 1st elemnt of split, get rid of spaces
    $episode = StringStripWS ($temp1 [2], 😎
    ;write nfo file
    _writenfo ()
Next
EndFunc

Func _writenfo ()
    If FileExists ($file) Then FileWriteLine ($file, "<episodedetails>")
    ;chr (9) is a TAB
    FileWriteLine ($file, Chr (9) & "<title>" & $title & "</title>")
    FileWriteLine ($file, Chr (9) & "<rating>5.0</rating>")
    FileWriteLine ($file, Chr (9) & "<season>" & $season & "</season>")
    FileWriteLine ($file, Chr (9) & "<episode>" & $episode & "</episode>")
    FileWriteLine ($file, Chr (9) & "<plot>Auto-Generated NFO File.</rating>")
    FileWriteLine ($file, Chr (9) & "<credits>Jester Mgee Systems</credits>")
    FileWriteLine ($file, Chr (9) & "<director></director>")
    FileWriteLine ($file, Chr (9) & "<aired></aired>")
    FileWriteLine ($file, Chr (9) & "<actor>")
    FileWriteLine ($file, Chr (9) & Chr (9) &"<name></name>")
    FileWriteLine ($file, Chr (9) & Chr (9) &"<role></role>")
    FileWriteLine ($file, Chr (9) & Chr (9) &"<thumb></thumb>")
    FileWriteLine ($file, Chr (9) & "</actor>")
    FileWriteLine ($file, "</episodedetails>")
EndFunc

 

Output result will be, you see, just remove the original lines and leave the new ones at the end with the cli command.

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--created on 2021-03-24 11:18:59 - tinyMediaManager 3.1.10-->
<episodedetails>
  <title>El Papa Cazador de brujas (Innocentius)</title>
  <originaltitle/>
  <showtitle>A Certain Magical Index</showtitle>
  <season>1</season>
  <episode>2</episode>
  <displayseason>-1</displayseason>
  <displayepisode>-1</displayepisode>
  <id>395179</id>
  <uniqueid default="true" type="tvdb">395179</uniqueid>
  <ratings>
    <rating default="true" max="10" name="tvdb">
      <value>8.7</value>
      <votes>196</votes>
    </rating>
  </ratings>
  <userrating>0.0</userrating>
  <plot>El mago se llama Styil Magnus que pertenece a la iglesia anglicana. Una vez acabado su presentación, Styil ataca a Touma con magia de fuego; sin embargo Touma lo anula con su mano derecha, luego Styil invico a Innocentius, un gigante de fuego capaz de carbonicar todo lo que lo rodea. Con la ayuda de Index, a pesar de estar inconsciente, Touma , utilizando su ingenio, pudo derrotar a Styil. Después, Index necesitaba ayuda médica, así que la llevó donde Komoe, su profesora, para curarla con magia , pero el debe abandonar el lugar, si no la magia no funcionaria solo con su presencia, dejando a Index en manos de su profesora.</plot>
  <runtime>0</runtime>
  <mpaa/>
  <premiered>2008-10-12</premiered>
  <aired>2008-10-12</aired>
  <watched>false</watched>
  <playcount/>
  <studio/>
  <credits>赤星政尚</credits>
  <director>錦織博</director>
  <trailer/>
  <dateadded>2021-03-24 10:56:15</dateadded>
  <epbookmark/>
  <code/>
  <fileinfo>
    <streamdetails>
      <video>
        <codec>HEVC</codec>
        <aspect>1.78</aspect>
        <width>1920</width>
        <height>1080</height>
        <durationinseconds>1422</durationinseconds>
        <stereomode/>
      </video>
      <audio>
        <codec>Opus</codec>
        <language>jpn</language>
        <channels>2</channels>
      </audio>
      <audio>
        <codec>Opus</codec>
        <language>eng</language>
        <channels>2</channels>
      </audio>
      <subtitle>
        <language>eng</language>
      </subtitle>
      <subtitle>
        <language>eng</language>
      </subtitle>
      <subtitle>
        <language>spa</language>
      </subtitle>
      <subtitle>
        <language>spa</language>
      </subtitle>
      <subtitle>
        <language>fra</language>
      </subtitle>
      <subtitle>
        <language>deu</language>
      </subtitle>
      <subtitle>
        <language>ita</language>
      </subtitle>
      <subtitle>
        <language>por</language>
      </subtitle>
      <subtitle>
        <language>pol</language>
      </subtitle>
      <subtitle>
        <language>tur</language>
      </subtitle>
      <subtitle>
        <language>swe</language>
      </subtitle>
      <subtitle>
        <language>dan</language>
      </subtitle>
      <subtitle>
        <language>fin</language>
      </subtitle>
      <subtitle>
        <language>nld</language>
      </subtitle>
      <subtitle>
        <language>nor</language>
      </subtitle>
      <subtitle>
        <language>rus</language>
      </subtitle>
      <subtitle>
        <language>hun</language>
      </subtitle>
      <subtitle>
        <language>ell</language>
      </subtitle>
      <subtitle>
        <language>heb</language>
      </subtitle>
      <subtitle>
        <language>ara</language>
      </subtitle>
      <subtitle>
        <language>ron</language>
      </subtitle>
      <subtitle>
        <language>ces</language>
      </subtitle>
      <subtitle>
        <language>jpn</language>
      </subtitle>
    </streamdetails>
  </fileinfo>
  <!--tinyMediaManager meta data-->
  <source>UNKNOWN</source>
  <original_filename>[Judas] Toaru Majutsu no Index - S01E02.mkv</original_filename>
  <user_note/>
</episodedetails>
<episodedetails>
    <title>El Papa Cazador de brujas (Innocentius)</title>
    <rating>5.0</rating>
    <season>02</season>
    <episode>05</episode>
    <plot>Auto-Generated NFO File.</rating>
    <credits>Jester Mgee Systems</credits>
    <director></director>
    <aired></aired>
    <actor>
        <name></name>
        <role></role>
        <thumb></thumb>
    </actor>
</episodedetails>
 

Wow, did you copy properly? I got this, 

image.png.602fadf834867c1d167e2025eb85ec7a.png

Link to comment
Share on other sites

gokuz
3 minutes ago, GrimReaper76 said:

By definition: "A software bug is an error, flaw or fault in a computer program or system that causes it to produce an incorrect or unexpected result, or to behave in unintended ways." 

It doesn't have to affect anyone, it still doesn't make it any less true. 

Then try taking a look in my previous thread. People gave me a hard time there too. 

Link to comment
Share on other sites

rodainas

You are not reading the instructions on the script

Batch rename your files as

 

A Certain Magical Index - 02x05 - El Papa Cazador de brujas (Innocentius).mkv

 

Link to comment
Share on other sites

gokuz
3 minutes ago, rodainas said:

Am going to add the file here to avoid problems.autoit.au3

 

Yea I changed to SSxEE.

You pasted emoji upon checking, thanks,

image.png.82286ce55d57fd7f5eeced6fd2092731.png

 

Link to comment
Share on other sites

roaku
5 minutes ago, gokuz said:

If its truly a bug like you said, has it affected you or anyone in this forum.

Why not?

 

Quote

The definition of bug does not include a requirement that it's already been discovered.

You're putting out red herrings because you can't actually come up with a logical reason that Emby should ignore season nfo when grouping your episodes by season.

 

 

Quote

You're wholly dependent on the appeal to tradition logical fallacy to justify your request.

That is, Emby used to be this way, therefore this way must be right.

This is why you can't ever, under any circumstances admit that this very straightforward example of a software bug is a bug.

If you did, you'd have no argument left.

That's because there's no reason at all that Emby *should* ignore the season information you're giving it in your nfos when grouping your episodes.

The fact that it did when you fed it conflicting folder season data was at best *undefined* behavior that went against the developers intentions. A bug by definition.

In fact, according to your logical house of cards, there can be no bugs at all if even one user declares that they like a given malfunction. It's nonsense.

You should fix your metadata.

And again, all of this is a red herring you're putting out because you can't justify the keeping the malfunction on its own terms.

 

 

Quote

You can't come up with any logical reason why those versions *should* have done that.

And you can't admit that you discovered and exploited a bug in those versions.

Because you can't do the first, you can't do the second.

Your logical house of cards would collapse.

Please show me I'm wrong.

 

 

 

Quote

Why *should* any version of Emby ignore season information in nfo files when grouping episodes?

 

 

Link to comment
Share on other sites

gokuz
17 minutes ago, rodainas said:

The script works

you just need to modify the last part

HERE

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.10.0
 Author:   Jester Mgee

 Script Function:
    This script is designed to create a simple .NFO file for video files. The script is hard coded to work on files with the following format names:

    Show Name - SSxEE - Episode Title.ext

    The Episode Title, Season Number (SS) and Episode Number (EE) will all be extracted and entered into an NFO file that will be created in the folder
    with the video files.

    The script is run from within the folder that NFO files are to be generated and will process the formats of files listed in the script.
    IF an NFO file already resides in the directory it will be replaced automatically.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#include <file.au3>
#include <array.au3>
Global $aravifiles, $file, $title, $season, $episode
$avidir = @ScriptDir
$nfodir = @ScriptDir

; Process 3 character extension files
;get avi files
$aravifiles = _FileListToArray ($avidir, "*.avi", 1)
_processfilename3()
;get mpg files
$aravifiles = _FileListToArray ($avidir, "*.mpg", 1)
_processfilename3()
;get wmv files
$aravifiles = _FileListToArray ($avidir, "*.mpg", 1)
_processfilename3()
;get mkv files
$aravifiles = _FileListToArray ($avidir, "*.mkv", 1)
_processfilename3()

; Process 4 character extension files
$aravifiles = _FileListToArray ($avidir, "*.divx", 1)
_processfilename4()
$aravifiles = _FileListToArray ($avidir, "*.mpeg", 1)
_processfilename4()
$aravifiles = _FileListToArray ($avidir, "*.mt2s", 1)
_processfilename4()

; Function for 3 character filenames (avi; mpg; wmv; mkv)
Func _processfilename3()
;Loop over array with filenames
For $i = 1 To UBound ($aravifiles) - 1
    ;Cut 4 char from the right -> get rid of extension and set new extension
    $file = $nfodir & "\" & StringTrimRight ($aravifiles [$i], 4) & ".nfo"
    ;Split Avi Filename by -
    $temp = StringSplit ($aravifiles [$i], " - ", 1)
    ;_ArrayDisplay ($temp, "StringSplit - File Name")
    ;last element is title -> get rid of extension and rid of leading space
    $title = StringTrimRight ($temp [3], 4)
    ;title and episode is split of 2 nd element of 1st stringsplit, splitting by x
    $temp1 = StringSplit ($temp [2], "x", 1)
    ;_ArrayDisplay ($temp1, "StringSplit - Season / Episode")
    ;season is last elemnt of split, get rid of spaces
    $season = StringStripWS ($temp1 [1], 😎
    ;episode is 1st elemnt of split, get rid of spaces
    $episode = StringStripWS ($temp1 [2], 😎
    ;write nfo file
    _writenfo ()
Next
EndFunc

; Function for 3 character filenames (divx; mpeg; mt2s)
Func _processfilename4()
;Loop over array with filenames
For $i = 1 To UBound ($aravifiles) - 1
    ;Cut 5 char from the right -> get rid of extension and set new extension
    $file = $nfodir & "\" & StringTrimRight ($aravifiles [$i], 5) & ".nfo"
    ;Split Avi Filename by -
    $temp = StringSplit ($aravifiles [$i], " - ", 1)
    ;_ArrayDisplay ($temp, "StringSplit - File Name")
    ;last element is title -> get rid of extension and rid of leading space
    $title = StringTrimRight ($temp [3], 5)
    ;title and episode is split of 2 nd element of 1st stringsplit, splitting by x
    $temp1 = StringSplit ($temp [2], "x", 1)
    ;_ArrayDisplay ($temp1, "StringSplit - Season / Episode")
    ;season is last elemnt of split, get rid of spaces
    $season = StringStripWS ($temp1 [1], 😎
    ;episode is 1st elemnt of split, get rid of spaces
    $episode = StringStripWS ($temp1 [2], 😎
    ;write nfo file
    _writenfo ()
Next
EndFunc

Func _writenfo ()
    If FileExists ($file) Then FileWriteLine ($file, "<episodedetails>")
    ;chr (9) is a TAB
    FileWriteLine ($file, Chr (9) & "<title>" & $title & "</title>")
    FileWriteLine ($file, Chr (9) & "<rating>5.0</rating>")
    FileWriteLine ($file, Chr (9) & "<season>" & $season & "</season>")
    FileWriteLine ($file, Chr (9) & "<episode>" & $episode & "</episode>")
    FileWriteLine ($file, Chr (9) & "<plot>Auto-Generated NFO File.</rating>")
    FileWriteLine ($file, Chr (9) & "<credits>Jester Mgee Systems</credits>")
    FileWriteLine ($file, Chr (9) & "<director></director>")
    FileWriteLine ($file, Chr (9) & "<aired></aired>")
    FileWriteLine ($file, Chr (9) & "<actor>")
    FileWriteLine ($file, Chr (9) & Chr (9) &"<name></name>")
    FileWriteLine ($file, Chr (9) & Chr (9) &"<role></role>")
    FileWriteLine ($file, Chr (9) & Chr (9) &"<thumb></thumb>")
    FileWriteLine ($file, Chr (9) & "</actor>")
    FileWriteLine ($file, "</episodedetails>")
EndFunc

 

Output result will be, you see, just remove the original lines and leave the new ones at the end with the cli command.

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--created on 2021-03-24 11:18:59 - tinyMediaManager 3.1.10-->
<episodedetails>
  <title>El Papa Cazador de brujas (Innocentius)</title>
  <originaltitle/>
  <showtitle>A Certain Magical Index</showtitle>
  <season>1</season>
  <episode>2</episode>
  <displayseason>-1</displayseason>
  <displayepisode>-1</displayepisode>
  <id>395179</id>
  <uniqueid default="true" type="tvdb">395179</uniqueid>
  <ratings>
    <rating default="true" max="10" name="tvdb">
      <value>8.7</value>
      <votes>196</votes>
    </rating>
  </ratings>
  <userrating>0.0</userrating>
  <plot>El mago se llama Styil Magnus que pertenece a la iglesia anglicana. Una vez acabado su presentación, Styil ataca a Touma con magia de fuego; sin embargo Touma lo anula con su mano derecha, luego Styil invico a Innocentius, un gigante de fuego capaz de carbonicar todo lo que lo rodea. Con la ayuda de Index, a pesar de estar inconsciente, Touma , utilizando su ingenio, pudo derrotar a Styil. Después, Index necesitaba ayuda médica, así que la llevó donde Komoe, su profesora, para curarla con magia , pero el debe abandonar el lugar, si no la magia no funcionaria solo con su presencia, dejando a Index en manos de su profesora.</plot>
  <runtime>0</runtime>
  <mpaa/>
  <premiered>2008-10-12</premiered>
  <aired>2008-10-12</aired>
  <watched>false</watched>
  <playcount/>
  <studio/>
  <credits>赤星政尚</credits>
  <director>錦織博</director>
  <trailer/>
  <dateadded>2021-03-24 10:56:15</dateadded>
  <epbookmark/>
  <code/>
  <fileinfo>
    <streamdetails>
      <video>
        <codec>HEVC</codec>
        <aspect>1.78</aspect>
        <width>1920</width>
        <height>1080</height>
        <durationinseconds>1422</durationinseconds>
        <stereomode/>
      </video>
      <audio>
        <codec>Opus</codec>
        <language>jpn</language>
        <channels>2</channels>
      </audio>
      <audio>
        <codec>Opus</codec>
        <language>eng</language>
        <channels>2</channels>
      </audio>
      <subtitle>
        <language>eng</language>
      </subtitle>
      <subtitle>
        <language>eng</language>
      </subtitle>
      <subtitle>
        <language>spa</language>
      </subtitle>
      <subtitle>
        <language>spa</language>
      </subtitle>
      <subtitle>
        <language>fra</language>
      </subtitle>
      <subtitle>
        <language>deu</language>
      </subtitle>
      <subtitle>
        <language>ita</language>
      </subtitle>
      <subtitle>
        <language>por</language>
      </subtitle>
      <subtitle>
        <language>pol</language>
      </subtitle>
      <subtitle>
        <language>tur</language>
      </subtitle>
      <subtitle>
        <language>swe</language>
      </subtitle>
      <subtitle>
        <language>dan</language>
      </subtitle>
      <subtitle>
        <language>fin</language>
      </subtitle>
      <subtitle>
        <language>nld</language>
      </subtitle>
      <subtitle>
        <language>nor</language>
      </subtitle>
      <subtitle>
        <language>rus</language>
      </subtitle>
      <subtitle>
        <language>hun</language>
      </subtitle>
      <subtitle>
        <language>ell</language>
      </subtitle>
      <subtitle>
        <language>heb</language>
      </subtitle>
      <subtitle>
        <language>ara</language>
      </subtitle>
      <subtitle>
        <language>ron</language>
      </subtitle>
      <subtitle>
        <language>ces</language>
      </subtitle>
      <subtitle>
        <language>jpn</language>
      </subtitle>
    </streamdetails>
  </fileinfo>
  <!--tinyMediaManager meta data-->
  <source>UNKNOWN</source>
  <original_filename>[Judas] Toaru Majutsu no Index - S01E02.mkv</original_filename>
  <user_note/>
</episodedetails>
<episodedetails>
    <title>El Papa Cazador de brujas (Innocentius)</title>
    <rating>5.0</rating>
    <season>02</season>
    <episode>05</episode>
    <plot>Auto-Generated NFO File.</rating>
    <credits>Jester Mgee Systems</credits>
    <director></director>
    <aired></aired>
    <actor>
        <name></name>
        <role></role>
        <thumb></thumb>
    </actor>
</episodedetails>
 

You have 

  <season>1</season>
  <episode>2</episode>

And 

    <season>02</season>
    <episode>05</episode>

in the same NFO.

It just adds to the bottom.

Just tested mine too., same result

 

Link to comment
Share on other sites

rodainas

Of course it is

you are not reading the instructions I posted

with the cli command you remove the first episode and season details

Edited by rodainas
Link to comment
Share on other sites

Deathsquirrel
11 minutes ago, gokuz said:

If its truly a bug like you said, has it affected you or anyone in this forum.

Why not?

I'll take this one but you're not gonna like it.

This bug doesn't impact anyone but you because no one else has done something this ridiculously incompetent, failed to realize it even after reviewing the available documentation, and then made an ass of themselves across a 18+ pages insisting that their screw-up is the way things should be done.

The paid staff that make Emby have answered your question.  You're trolling at this point.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...