Jump to content

Recommended Posts

gillmacca01
Posted
16 minutes ago, fbrassin said:

I'm testing both, this script and your plugin these days.

Both of them are great.

I like @mickle026 one because there is also the possibility to ignore words and to force entries in movies or serie.

I like @sftech13one because you can choose to import what you don't have in your media dir, so only new content.

Tnx to both for your work.

 

I'm hoping that mickle026 might consider the 2nd option, but don't want to ask at the moment, as he has accomplished alot in a short period of time and deserves a little break

 

sftech13
Posted
1 hour ago, mickle026 said:

I am continually updating my regex pattern.

The last update above is working in my emby plugin , I'm pretty sure I have updated it again since though.  I am not home much today so probably can't post the latest today.

Anyway the best thing for @sftech13to do is check it on a small sample and see if he can see why.  The question is , is it my regex or something in the translation to python such as the escape sequences in it?

I am happy to share mine , it all benefits everyone.

I will still be modifying mine as there are a few edge cases that it's still not capturing.

Thank you. I'm out today but tomorrow will fix it 

 

Thank you and everyone for the support. This is how the community should always be

sftech13
Posted
2 hours ago, fbrassin said:

I run the script again with latest update, but nothing as been created ti Tv Shows folder.

I also try to delete cache file and run the script again, but nothing in tv show.

I have all ok in movie and documentary folder

Do you need log file?

I'll fix tomorrow. I'm out today

  • Like 1
sftech13
Posted
On 3/9/2025 at 7:31 AM, fbrassin said:

I'm testing both, this script and your plugin these days.

Both of them are great.

I like @mickle026 one because there is also the possibility to ignore words and to force entries in movies or serie.

I like @sftech13one because you can choose to import what you don't have in your media dir, so only new content.

Tnx to both for your work.

 

I have updated and confirmed the regex is working based on the your example. 

try it out and let me know. I also adjusted the config and base directory. No more specifying existing directories. 

I will add more regex when someone requests with examples to ensure functionality. 

 

# Updated patteren for Alaska: gli alieni sono tra noi S01 E05
tv_pattern = re.compile(r"(?i)S(?:eason)?\s*(\d{1,4})\s*E(?:pisode)?\s*(\d{1,4})")

 

sftech13
Posted (edited)

After adding in the CPU core count, memory and system arch. The script has improved its speed a lot. 

56.3MB m3u file

143891/143891 strm files written

about 4 min to run start to finish. 
 

2025-03-10 12:13:47,230 - INFO - Starting M3U to STRM conversion for Movies, TV Shows, and Documentaries...
2025-03-10 12:13:47,897 - INFO - Building media cache from directory: /media/Existing
Scanning /media/Existing: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8989/8989 [00:00<00:00, 11733.70files/s]
2025-03-10 12:13:48,670 - INFO - Built cache with 6987 entries from /media/Existing
2025-03-10 12:13:52,593 - INFO - Parsed 143891 entries from M3U file: /home/file.m3u
2025-03-10 12:13:52,616 - INFO - System architecture: x86_64, CPU cores: 8, Memory: 15.38GB, recommended parallel writes: 16
2025-03-10 12:13:52,616 - INFO - Using 16 worker threads for file creation (configured: 16, recommended: 16)
Creating STRM files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 143891/143891 [03:19<00:00, 719.91entry/s]
2025-03-10 12:17:17,659 - INFO - All .strm files have been created successfully for Emby.

 

Edited by sftech13
fbrassin
Posted

In previous version in config file i had:

    "existing_media_dir": [
        "/media/Movies",
        "/media/Serie_Tv"
    ],

Because i had 2 different dir, but now it only works with one folder.

How can i configure 2 folderS?

Tnx

sftech13
Posted (edited)
37 minutes ago, fbrassin said:

In previous version in config file i had:

    "existing_media_dir": [
        "/media/Movies",
        "/media/Serie_Tv"
    ],

Because i had 2 different dir, but now it only works with one folder.

How can i configure 2 folderS?

Tnx

Use 

/media

it will walk all folders 

Edited by sftech13
fbrassin
Posted
7 minutes ago, sftech13 said:

Use 

/media

it will walk all folders 

The problem is that i have many folders in /media, also STRM folder itself.

sftech13
Posted
Just now, fbrassin said:

The problem is that i have many folders in /media, also STRM folder itself.

hmmm.. Okay let me add it back. For testing you can create a temp directory and symlink the folders you want. 

fbrassin
Posted (edited)
6 minutes ago, sftech13 said:

hmmm.. Okay let me add it back. For testing you can create a temp directory and symlink the folders you want. 

Yes, you are right i didn't think about it 🙂

So, no need to have it back 

Edited by fbrassin
  • Agree 1
fbrassin
Posted

I don't know why i always have error whit pokemon movies:

/IPTVDIR/Movies/Pokémon - Kyurem e il solenne spadaccino/Pokémon - Kyurem e il solenne spadaccino.strm: [Errno 74] Bad message: '/media/S3/IPTVDIR/Movies/Pokémon - Kyurem e il solenne spadaccino/Pokémon - Kyurem e il solenne spadaccino.strm'
2025-03-10 21:38:34,295 - ERROR - Failed to create /media/S3/IPTVDIR/Movies/Pokémon - Lascesa di Darkrai (2007)/Pokémon - Lascesa di Darkrai (2007).strm: [Errno 74] Bad message: '/media/S3/IPTVDIR/Movies/Pokémon - Lascesa di Darkrai (2007)/Pokémon - Lascesa di Darkrai (2007).strm'
Creating STRM files:   1%|▍                                                          | 1428/190539 [01:29<3:44:55, 14.01entry/s]2025-03-10 21:38:34,311 - ERROR - Failed to create /media/S3/IPTVDIR/Movies/Pokémon - Lucario e il mistero di Mew (2005)/Pokémon - Lucario e il mistero di Mew (2005).strm: [Errno 74] Bad message: '/media/S3/IPTVDIR/Movies/Pokémon - Lucario e il mistero di Mew (2005)/Pokémon - Lucario e il mistero di Mew (2005).strm'
C

 

sftech13
Posted (edited)
2 hours ago, fbrassin said:

I don't know why i always have error whit pokemon movies:

/IPTVDIR/Movies/Pokémon - Kyurem e il solenne spadaccino/Pokémon - Kyurem e il solenne spadaccino.strm: [Errno 74] Bad message: '/media/S3/IPTVDIR/Movies/Pokémon - Kyurem e il solenne spadaccino/Pokémon - Kyurem e il solenne spadaccino.strm'
2025-03-10 21:38:34,295 - ERROR - Failed to create /media/S3/IPTVDIR/Movies/Pokémon - Lascesa di Darkrai (2007)/Pokémon - Lascesa di Darkrai (2007).strm: [Errno 74] Bad message: '/media/S3/IPTVDIR/Movies/Pokémon - Lascesa di Darkrai (2007)/Pokémon - Lascesa di Darkrai (2007).strm'
Creating STRM files:   1%|▍                                                          | 1428/190539 [01:29<3:44:55, 14.01entry/s]2025-03-10 21:38:34,311 - ERROR - Failed to create /media/S3/IPTVDIR/Movies/Pokémon - Lucario e il mistero di Mew (2005)/Pokémon - Lucario e il mistero di Mew (2005).strm: [Errno 74] Bad message: '/media/S3/IPTVDIR/Movies/Pokémon - Lucario e il mistero di Mew (2005)/Pokémon - Lucario e il mistero di Mew (2005).strm'
C

 

Just pushed an update for non-ASCII characters in name. 

Just pushed another update, ignore keywords. The config file as a couple new entries. 

Try it out let me know. 

Edited by sftech13
update ignore keywords
fbrassin
Posted

It seems to be ok now.

I have to do some more test about ignore config.

  • Like 1
sftech13
Posted
1 hour ago, fbrassin said:

It seems to be ok now.

I have to do some more test about ignore config.

I updated again for cache reading and directory/file deletion. If the item is out of the m3u it will delete the .strm and directory its in . You will need new cache files. Delete the current ones and let it run. 

  • Like 1
sundevil67
Posted

I'm not impatient, just curious to know if there will be a way to do this via the plugin & MacOS server.. I've lived without it for years, but it's always been just out of reach lol ... I've tried running Python scripts & Homebrew, etc., but I can't ever get that stuff to work, so the plugin is the only way for me

mickle026
Posted (edited)
4 minutes ago, sundevil67 said:

I'm not impatient, just curious to know if there will be a way to do this via the plugin & MacOS server.. I've lived without it for years, but it's always been just out of reach lol ... I've tried running Python scripts & Homebrew, etc., but I can't ever get that stuff to work, so the plugin is the only way for me

Follow the progress in the plugins dedicated thread here:

This current thread is mainly updates on the python script by @sftech13

 

Edited by mickle026
  • Agree 1
sftech13
Posted (edited)
10 minutes ago, sundevil67 said:

I'm not impatient, just curious to know if there will be a way to do this via the plugin & MacOS server.. I've lived without it for years, but it's always been just out of reach lol ... I've tried running Python scripts & Homebrew, etc., but I can't ever get that stuff to work, so the plugin is the only way for me

For the plugin please see the current BETA by @mickle026I will most likely stop development on this once the plugin is out of BETA myself. 

Edited by sftech13
fbrassin
Posted

So, this script and pluing are the same?

Are you working togheter?

 

mickle026
Posted
41 minutes ago, fbrassin said:

So, this script and pluing are the same?

Are you working togheter?

 

Not the same, but similar.  The both achieve a very similar outcome.

 

Not working together, but not against each other either, I am happy to help anyone where I can.

  • Like 1
  • Thanks 1
sundevil67
Posted
22 hours ago, mickle026 said:

Not the same, but similar.  The both achieve a very similar outcome.

 

Not working together, but not against each other either, I am happy to help anyone where I can.

So yours isn't in the plugin catalog? I couldn't find it anyway ... or from that link in your sig...assuming then it's one I'd have to install myself? Can you post the link (and forgive me if it's someplace right in front of my face & I'm not seeing it)? Thank you!

sftech13
Posted
1 hour ago, sundevil67 said:

So yours isn't in the plugin catalog? I couldn't find it anyway ... or from that link in your sig...assuming then it's one I'd have to install myself? Can you post the link (and forgive me if it's someplace right in front of my face & I'm not seeing it)? Thank you!



here you go

 

BigIrn
Posted
2 hours ago, sundevil67 said:

So yours isn't in the plugin catalog? I couldn't find it anyway ... or from that link in your sig...assuming then it's one I'd have to install myself? Can you post the link (and forgive me if it's someplace right in front of my face & I'm not seeing it)? Thank you!

Sundevil do you need help installing a plugin? I run macos m4 mini if you need help. I gave up on windows for now.

sundevil67
Posted (edited)
20 hours ago, BigIrn said:

Sundevil do you need help installing a plugin? I run macos m4 mini if you need help. I gave up on windows for now.

I have it M3UtoSTRM (from the catalog) installed; just not working for me. It just creates empty directories & copies of my m3u files. I was just looking at the "Beta" one by @mickle026& looks like it may just be more than I can chew. I think this may just be something I have to do without. I appreciate the help.

Edited by sundevil67
gillmacca01
Posted
1 minute ago, sundevil67 said:

I have it M3UtoSTRM (from the catalog) installed; just not working for me. It just creates empty directories & copies of my m3u files. I couldn't find the other "beta" one by @mickle026

Mickle026 has just released a new version (a lot of it rebuilt)

https://emby.media/community/index.php?/topic/136247-plugin-export-vods-from-m3u-split-m3u-livetv-tvshows-movies-going-beta/page/9/#comment-1429946

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