gillmacca01 180 Posted March 9 Posted March 9 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 21 Posted March 9 Posted March 9 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 21 Posted March 9 Posted March 9 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 1
sundevil67 25 Posted March 9 Posted March 9 Here's what I'm seeing in the plugin this morning...Maybe I have it set up incorrectly, but there's no directories being generated. ScheduledTask-[M3UToStrm]09.Mar.2025 - 10.52.01.txt
sftech13 21 Posted March 10 Posted March 10 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 21 Posted March 10 Posted March 10 (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 March 10 by sftech13
fbrassin 44 Posted March 10 Posted March 10 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 21 Posted March 10 Posted March 10 (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 March 10 by sftech13
fbrassin 44 Posted March 10 Posted March 10 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 21 Posted March 10 Posted March 10 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 44 Posted March 10 Posted March 10 (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 March 10 by fbrassin 1
fbrassin 44 Posted March 10 Posted March 10 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 21 Posted March 10 Posted March 10 (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 March 10 by sftech13 update ignore keywords
fbrassin 44 Posted March 11 Posted March 11 It seems to be ok now. I have to do some more test about ignore config. 1
sftech13 21 Posted March 11 Posted March 11 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. 1
sundevil67 25 Posted March 13 Posted March 13 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 577 Posted March 13 Posted March 13 (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 March 13 by mickle026 1
sftech13 21 Posted March 13 Posted March 13 (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 March 13 by sftech13
fbrassin 44 Posted March 13 Posted March 13 So, this script and pluing are the same? Are you working togheter?
mickle026 577 Posted March 13 Posted March 13 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. 1 1
sundevil67 25 Posted March 14 Posted March 14 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 21 Posted March 14 Posted March 14 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 10 Posted March 14 Posted March 14 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 25 Posted March 15 Posted March 15 (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 March 15 by sundevil67
gillmacca01 180 Posted March 15 Posted March 15 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now