Jump to content

Subtitles folder


Juubeii

Recommended Posts

37 minutes ago, Luke said:

Hi, this is already supported now in Emby Server 4.7.

Thank you for confirming that for me.

I dug down into my problem and found the culprit. (Doh!) I had previously stacked a fuse -program called rofs-filtered on top of the share, which had added a filter for "Subs", thus removing them from the folder shared to the emby container.... 

Link to comment
Share on other sites

Okay, it still didn't seem to work...

Path for content is: TV.Series/Our.Girl/Season.1/Our.Girl.S01E01.DVDRip.x264-HAGGiS/our.girl.s01e01.dvdrip.x264-haggis.mkv

Path for subtitle is: TV.Series/Our.Girl/Season.1/Our.Girl.S01E01.DVDRip.x264-HAGGiS/Subs

which holds the files:

our.girl.s01e01.dvdrip.x264-haggis.idx

our.girl.s01e01.dvdrip.x264-haggis.sub

The content is played back using direct play through Emby with Chrome:

When looking at "Media Info" in Emby of the episode, no column for subtitles are shown. Indicating that it does not indeed see the subtitle.

When using debug mode, the log shows this after "Scan Library Files"  is performed for the tv-series:

2022-09-27 17:48:59.423 Debug App: FolderImageProvider reports change to 512229 - /TV.Series/Our.Girl/Season.1/Our.Girl.S01E01.DVDRip.x264-HAGGiS/Subs 2022-09-27 17:48:59.423 Debug App: Running FolderImageProvider for /TV.Series/Our.Girl/Season.1/Our.Girl.S01E01.DVDRip.x264-HAGGiS/Subs

Then nothing more.

Edited by Gnisch
Link to comment
Share on other sites

4 minutes ago, Gnisch said:

Okay, it still didn't seem to work...

Path for content is: TV.Series/Our.Girl/Season.1/Our.Girl.S01E01.DVDRip.x264-HAGGiS/our.girl.s01e01.dvdrip.x264-haggis.mkv

Path for subtitle is: TV.Series/Our.Girl/Season.1/Our.Girl.S01E01.DVDRip.x264-HAGGiS/Subs

which holds the files:

our.girl.s01e01.dvdrip.x264-haggis.idx

our.girl.s01e01.dvdrip.x264-haggis.sub

The content is played back using direct play through Emby with Chrome:

When looking at "Media Info" in Emby of the episode, no column for subtitles are shown. Indicating that it does not indeed see the subtitle.

When using debug mode, the log shows this after "Scan Library Files"  is performed for the tv-series:

2022-09-27 17:48:59.423 Debug App: FolderImageProvider reports change to 512229 - /TV.Series/Our.Girl/Season.1/Our.Girl.S01E01.DVDRip.x264-HAGGiS/Subs 2022-09-27 17:48:59.423 Debug App: Running FolderImageProvider for /TV.Series/Our.Girl/Season.1/Our.Girl.S01E01.DVDRip.x264-HAGGiS/Subs

Then nothing more.

Right now it's only supported for videos that have their own folder, like movies for example.

Link to comment
Share on other sites

10 minutes ago, Luke said:

Right now it's only supported for videos that have their own folder, like movies for example.

Hmm, how would that folder structure look like? In my example each episode has it's own folder with a "Subs"-folder directly under it.

Link to comment
Share on other sites

  • 2 weeks later...

OK it looks like the subtitles and subs folder support was not added for episodes, so we'll add that for Emby Server 4.8. Thanks.

  • Thanks 1
Link to comment
Share on other sites

  • 6 months later...
Darkseidd
On 10/10/2022 at 12:43 PM, Luke said:

OK it looks like the subtitles and subs folder support was not added for episodes, so we'll add that for Emby Server 4.8. Thanks.

hi Luke, is this already available? im running 4.8.0.29 and it doesn't seem to pickup episode's subtitle under folder

structure:
 

<seriesEP1>.mp4
|--- Subs (folder)
     |--- <seriesEP1> (folder)
           |--- English.srt
<seriesEP2>.mp4
|--- Subs (folder)
     |--- <seriesEP2> (folder)
           |--- English.srt
<seriesEP3>.mp4
|--- Subs (folder)
     |--- <seriesEP3> (folder)
           |--- English.srt

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Just now, Darkseidd said:

hi Luke, is this already available? im running 4.8.0.29 and it doesn't seem to pickup episode's subtitle under folder

structure:
 

<seriesEP1>.mp4
|--- Subs (folder)
     |--- <seriesEP1> (folder)
           |--- English.srt
<seriesEP2>.mp4
|--- Subs (folder)
     |--- <seriesEP2> (folder)
           |--- English.srt
<seriesEP3>.mp4
|--- Subs (folder)
     |--- <seriesEP3> (folder)
           |--- English.srt

 

 

 

 

 

 

 

 

An episode folder under the subs folder? I've never heard of that before, so no, it's not looking for that.

  • Thanks 1
Link to comment
Share on other sites

Darkseidd
4 hours ago, Luke said:

An episode folder under the subs folder? I've never heard of that before, so no, it's not looking for that.

yep weird structure by rarbg side. I think i represented the folder structure *a little* wrong in previous post. below is the correct one. will emby ever support this?

(in series main folder)
<seriesEP1>.mp4
<seriesEP2>.mp4
<seriesEP3>.mp4
|--- Subs (folder)
     |--- <seriesEP1> (folder)
          |--- English.srt
     |--- <seriesEP2> (folder)
          |--- English.srt
     |--- <seriesEP3> (folder)
          |--- English.srt



 

 

Link to comment
Share on other sites

29 minutes ago, Darkseidd said:

yep weird structure by rarbg side. I think i represented the folder structure *a little* wrong in previous post. below is the correct one. will emby ever support this?

(in series main folder)
<seriesEP1>.mp4
<seriesEP2>.mp4
<seriesEP3>.mp4
|--- Subs (folder)
     |--- <seriesEP1> (folder)
          |--- English.srt
     |--- <seriesEP2> (folder)
          |--- English.srt
     |--- <seriesEP3> (folder)
          |--- English.srt



 

 

It's certainly possible.

  • Thanks 1
Link to comment
Share on other sites

  • 3 months later...
dalesd
On 5/23/2022 at 9:00 AM, aarongardner17 said:

I think this thread might be the best place for this as seems related to the above question.

  1. TV series downloaded with a Subs folder.
  2. The Subs folder contains folders named after each episode.
  3. Within each folder being a long list of subtitle files with just the language name.

Emby can't seem to find the subtitles unless I manually pull out the one I want for each episode and rename it to have a matching filename.

Any suggestions within Emby or for a tool or script to do this automatically?

image.thumb.png.20e892365e5cbebe97fde26d9056beed.png

I had this exact issue with a seven seasons of a series.  
No way I was going to do that by hand!  
Here's a bash script I used to fix it.  Maybe some of you will find this useful too.  


It runs in the "Subs" folder and makes a copy of the files in the Subs folder and puts it in two directories up. It leaves the original file unchanged.  

 Beware, I know very little about bash scripts and mostly used Bard to write it. 
(I really wanted it to do all the seasons in one go, but it was more hassle than it's worth.)

#!/bin/bash

# Get the current directory
current_dir=$(pwd)

# Loop through all the subdirectories
for subdirectory in */; do

  # Change directory to the subdirectory
  cd "$subdirectory"

  # Get the name of the folder
  folder_name=$(basename "$subdirectory")

  # Loop through all the files in the subdirectory
  for file in *; do

    # Create a new file name with the folder name prepended
    new_file_name="$folder_name.$file"

    # Copy the original file to the new file name
    cp "$file" "$new_file_name"

    # Move the new file up one level
    mv "$new_file_name" ../../

  done

  # Change back to the parent directory
  cd "$current_dir"

done

 

Edited by dalesd
  • Thanks 1
Link to comment
Share on other sites

  • 8 months later...
Leviathan33
On 20/07/2023 at 21:13, dalesd said:

I had this exact issue with a seven seasons of a series.  
No way I was going to do that by hand!  
Here's a bash script I used to fix it.  Maybe some of you will find this useful too.  


It runs in the "Subs" folder and makes a copy of the files in the Subs folder and puts it in two directories up. It leaves the original file unchanged.  

 Beware, I know very little about bash scripts and mostly used Bard to write it. 
(I really wanted it to do all the seasons in one go, but it was more hassle than it's worth.)

#!/bin/bash

# Get the current directory
current_dir=$(pwd)

# Loop through all the subdirectories
for subdirectory in */; do

  # Change directory to the subdirectory
  cd "$subdirectory"

  # Get the name of the folder
  folder_name=$(basename "$subdirectory")

  # Loop through all the files in the subdirectory
  for file in *; do

    # Create a new file name with the folder name prepended
    new_file_name="$folder_name.$file"

    # Copy the original file to the new file name
    cp "$file" "$new_file_name"

    # Move the new file up one level
    mv "$new_file_name" ../../

  done

  # Change back to the parent directory
  cd "$current_dir"

done

 

Thanks!
This script has save me a lot of time, instead of manually renaming all SRT files I now could do it per season, saved me a morning full of work!

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...