Jump to content

Recommended Posts

quickmic
Posted (edited)

@radeon

Is it possible to embed id3v2 and mp4 tags in e.g. theme files? e.g. theme.mp3

I query Emby's metadata info from theme files and Emby reports (e.g. for Content "Audio") "name" as "theme".

Would be nice if the "Name" would be e.g. "Big Bang therory - Theme" as "Name"

 

{
   "Name":"theme",
   "ServerId":"2a38697ffc1b428b943aa1b6014e2263",
   "Id":"24461",
   "DateCreated":"2023-05-21T08:36:32.0000000Z",
   "Container":"mp3",
   "SortName":"theme",
   "MediaSources":[
      {
         "Protocol":"File",
         "Id":"429fd7bf0512b52964f656088209a7e4",
         "Path":"/mnt/storage0/multimedia/series/B/Big Bang Theory/theme.mp3",
         "Type":"Default",
         "Container":"mp3",
         "Size":321500,
         "Name":"theme",
         "IsRemote":false,
         "RunTimeTicks":200620410,
         "SupportsTranscoding":true,
         "SupportsDirectStream":true,
         "SupportsDirectPlay":true,
         "IsInfiniteStream":false,
         "RequiresOpening":false,
         "RequiresClosing":false,
         "RequiresLooping":false,
         "SupportsProbing":false,
         "MediaStreams":[
            {
               "Codec":"mp3",
               "TimeBase":"1/14112000",
               "DisplayTitle":"MP3 stereo",
               "IsInterlaced":false,
               "ChannelLayout":"stereo",
               "BitRate":128000,
               "Channels":2,
               "SampleRate":44100,
               "IsDefault":false,
               "IsForced":false,
               "IsHearingImpaired":false,
               "Type":"Audio",
               "Index":0,
               "IsExternal":false,
               "IsTextSubtitleStream":false,
               "SupportsExternalStream":false,
               "Protocol":"File",
               "ExtendedVideoType":"None",
               "ExtendedVideoSubType":"None",
               "ExtendedVideoSubTypeDescription":"None",
               "AttachmentSize":0
            }
         ],
         "Formats":[
            
         ],
         "Bitrate":128202,
         "RequiredHttpHeaders":{
            
         },
         "ReadAtNativeFramerate":false,
         "DefaultAudioStreamIndex":0
      }
   ],
   "Path":"/mnt/storage0/multimedia/series/B/Big Bang Theory/theme.mp3",
   "Overview":"What happens when hyperintelligent roommates Sheldon and Leonard meet Penny, a free-spirited beauty moving in next door, and realize they know next to nothing about life outside of the lab. Rounding out the crew are the smarmy Wolowitz, who thinks he's as sexy as he is brainy, and Koothrappali, who suffers from an inability to speak in the presence of a woman.",
   "Genres":[
      "Comedy"
   ],
   "RunTimeTicks":200620410,
   "Size":321500,
   "Bitrate":128202,
   "ProviderIds":{
      
   },
   "IsFolder":false,
   "Type":"Audio",
   "GenreItems":[
      {
         "Name":"Comedy",
         "Id":16191
      }
   ],
   "ParentLogoItemId":"24402",
   "ParentBackdropItemId":"24402",
   "ParentBackdropImageTags":[
      "4fe6275da98ef42e707a58b8ce816d02",
      "af4119e0db04bdef8c5cde21ec95ac71",
      "104d5eb6c5decb5981be1a6219a564f8",
      "7dec4786473cab9afdcfeda2a365ca74",
      "625a1ac48af7267d118d30de971a1378",
      "b8ed5e4357a6c4e84009cffd37a9ae41",
      "10ff787d4371ead6655c1e8984942c54",
      "73c86e0af81d54201907e78e0d40c157",
      "f69005ddd911bfb8898b58e93762bd62",
      "f8dab329ae6f3de0b1d3b43d887c4247"
   ],
   "UserData":{
      "PlaybackPositionTicks":0,
      "PlayCount":4,
      "IsFavorite":false,
      "LastPlayedDate":"2024-01-13T16:07:40.0000000Z",
      "Played":true
   },
   "Artists":[
      
   ],
   "ArtistItems":[
      
   ],
   "Composers":[
      
   ],
   "AlbumArtists":[
      
   ],
   "MediaStreams":[
      {
         "Codec":"mp3",
         "TimeBase":"1/14112000",
         "DisplayTitle":"MP3 stereo",
         "IsInterlaced":false,
         "ChannelLayout":"stereo",
         "BitRate":128000,
         "Channels":2,
         "SampleRate":44100,
         "IsDefault":false,
         "IsForced":false,
         "IsHearingImpaired":false,
         "Type":"Audio",
         "Index":0,
         "IsExternal":false,
         "IsTextSubtitleStream":false,
         "SupportsExternalStream":false,
         "Protocol":"File",
         "ExtendedVideoType":"None",
         "ExtendedVideoSubType":"None",
         "ExtendedVideoSubTypeDescription":"None",
         "AttachmentSize":0
      }
   ],
   "ImageTags":{
      
   },
   "BackdropImageTags":[
      
   ],
   "ParentLogoImageTag":"68c9c04982fb43417cb6af719c59f136",
   "ParentThumbItemId":"24402",
   "ParentThumbImageTag":"cd9939f872891e79c715db4e0e4ca662",
   "MediaType":"Audio"
}

 

Edited by quickmic
  • 1 month later...
Painkiller88
Posted

Could it be the plugin is no longer working (movie theme songs and movie trailer plugin) the tv show theme song plugin is working but the other two seem to have a problem finding the index file and the yt trailer download plugin reports: The remote server returned an error: (500) Internal Server Error.


2024-02-28 19:49:49.318 Error App: Movie Theme Songs - Error downloading theme songs initial index file
2024-02-28 19:49:49.319 Info TaskManager: Download Local Movie Theme Songs Completed after 0 minute(s) and 0 seconds
2024-02-28 19:49:53.981 Info TaskManager: Executing Download Local YouTube Movie Trailers
2024-02-28 19:49:53.982 Info App: YTrailers Key: XXX
2024-02-28 19:49:54.239 Info HttpClient: GET https://www.theaudiodb.com/api/v1/json/2139078587215309723505/artist-mb.php?i=2c89e930-7769-403f-8145-f215bb8fb5ba
2024-02-28 19:49:54.628 Error App: YTrailers - Error
*** Error Report ***
Version: 4.8.1.0
Command line: C:\Users\Painkiller\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
Operating system: Microsoft Windows 10.0.19045
Framework: .NET 6.0.26
OS/Process: x64/x64
Runtime: C:/Users/Painkiller/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
Processor count: 16
Data path: C:\Users\Painkiller\AppData\Roaming\Emby-Server\programdata
Application path: C:\Users\Painkiller\AppData\Roaming\Emby-Server\system
System.Net.WebException: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at YTrailers.Licence.Validate.CheckActivation(String Key)
at YTrailers.ScheduledTasks.LocalYTrailersDownloadTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
Source: System.Net.Requests
TargetSite: System.Net.WebResponse GetResponse()
2024-02-28 19:49:54.628 Info TaskManager: Download Local YouTube Movie Trailers Completed after 0 minute(s) and 0 seconds


Any infos on this? 

Thanks

Posted (edited)

A fix is being worked on right now, although I can't discuss the ytrailers plugin on the forums. 

The theme plugins only have issue with their config screens but are functioning right. You may have flashed with when the index file is being swapped out server side 

Edited by radeon
Posted
3 minutes ago, radeon said:

A fix is being worked on right now, although I can't discuss the ytrailers plugin on the forums. 

If you don't mind me asking, why not?

Posted
1 minute ago, cbdudek said:

If you don't mind me asking, why not?

It's not allowed in the emby catalog and isn't sold with any association to emby and they don't like it being discussed 

  • Facepalm 1
Posted
3 minutes ago, radeon said:

It's not allowed in the emby catalog and isn't sold with any association to emby and they don't like it being discussed 

A little disappointing but I understand.  Thanks for taking the time to explain that.

Painkiller88
Posted
7 minutes ago, radeon said:

You may have flashed with when the index file is being swapped out server side

i haven't changed anything but now you mentioned it i checked in the two plugins and yes, all already downloaded movies are gone, so the list is empty.

How can i recreate an index file? As long as the files are still on my file system they don't get overwritten if i am right correct?

So i just want to get it back working, i don't need the list of all existing themes songs and movies.

Thanks

Posted

The index file is generated server side and nothing to worry about. It generates when new themes are added to the host. 

The the config is broken since the new 4.8 update in terms of your ability to see what's what in the background but it doesn't affect downloads or use. It just prevents you from being able to clear the list and adjust some settings. It's still populating them in the background and the downloads are still functioning. I tested it just this morning. 

 

I have a new version practically done, I just need to bring over one last setting to a new config screen, get them tested and they'll be released. 👍

  • Like 1
  • Thanks 1
Painkiller88
Posted
2 minutes ago, radeon said:

The index file is generated server side and nothing to worry about. It generates when new themes are added to the host. 

The the config is broken since the new 4.8 update in terms of your ability to see what's what in the background but it doesn't affect downloads or use. It just prevents you from being able to clear the list and adjust some settings. It's still populating them in the background and the downloads are still functioning. I tested it just this morning. 

 

I have a new version practically done, I just need to bring over one last setting to a new config screen, get them tested and they'll be released. 👍

perfect thanks sounds good. i only noticed it because i started the task manually and it was finished immediately

Posted
51 minutes ago, cbdudek said:

A little disappointing but I understand.  Thanks for taking the time to explain that.

It's all good. I totally get their reasons. Ha been like it in years. I also like to keep the threads clean and referencing their respective plugins. 

Posted

I've just pushed an update for the TV Theme Videos plugin to bring the config pages in line with the new 4.8 of emby. If this doesn't have any major issues, I'll release for the others.

  • Like 1
Posted (edited)

Movie Theme Songs Update Released 1.8.1.0 

Fixes the config screens not loading correctly.

Edited by radeon
  • Thanks 1
Posted

The TV Videos Working for me now.  Thanks.

The TV Songs, Movie Songs and Videos have updated, and I restarted, but they still behave the same.

Also, can only go to -15 for Max Audio Normalization. I used to be able to use -30.

Posted

Just rebooted the computer and all is well now. Thanks.

Still can't set volume to -30 tho.

  • 4 weeks later...
AndyWorth
Posted

First off, thanks to John for sorting out a licence issue which I caused myself by misundertsanding the instructions!

So now to the problem...the movie plugin is not putting the theme.mp3 files in the correct place!

My set up consists of 3 QNAP NAS boxes. The emby server is on an all solid state NAS and the other 2 NAS boxes are storage for Movies & TV Shows (one of each).

The Movie theme plugin happily goes off and fetches the mp3s, but when it attempts to move them to the correct place it's not sending them across the network to the other NAS, it is creating a local folder instead and dropping them in there.

The library for movies is mapped as: smb://192.168.1.238/Movies and works fine, but the plugin in is trying to move to the network path, but instead creates a local folder.

This is what the log shows for the move: (only one / after the smb: - is this the problem?!)

Info App: Movie Theme Songs - Moving /share/CACHEDEV1_DATA/.qpkg/EmbyServer/programdata/cache/temp/a921aa9e-3eef-4930-9f0f-6cb59b2c4a79.tmp to smb:/192.168.1.238/Movies/Bodies (2016)/theme.mp3

Poking around the emby NAS shows a new folder created here with all the theme.mp3s in correctly named movie folders:

/share/CACHEDEV1_DATA/.qpkg/EmbyServer/smb:/192.168.1.238

I also have the TV theme plugin but haven't yet set up the TV library on this server so cannot tell you if that has the same issue at the moment.

I can attach a full log if required, but it will be big & messy as currently building this new SSD server and importing the data.

Is the path something I can change? I can't be the only person with library media on a seperate NAS to the server?

AndyWorth
Posted

I worked out last night this is a permissions problem I think. For some reason the Samba shares are not accessible NAS to NAS. Don't understand why yet and cannot for the life of me get CIFS/SMB working NAS to NAS either so am trying some iscsi magic now for the libraries.

  • 1 month later...
pgriffith
Posted

Hi John

Bought your plugins back in 2012, so quite some time ago :)

They are currently showing as in trial mode, my Emby supporter email and my PayPal email haven't changed over the years. There's been quite a few rebuilds as you can imagine, what do I need to do to get things running again? I still have the original email confirmations from when I purchased, and you did reissue me some new keys a year or so after the fact when I replaced my server.

radeon
Posted
3 minutes ago, pgriffith said:

Hi John

Bought your plugins back in 2012, so quite some time ago :)

They are currently showing as in trial mode, my Emby supporter email and my PayPal email haven't changed over the years. There's been quite a few rebuilds as you can imagine, what do I need to do to get things running again? I still have the original email confirmations from when I purchased, and you did reissue me some new keys a year or so after the fact when I replaced my server.

Ah, I guess you missed this:

 

https://emby.media/community/index.php?/topic/2007-movie-theme-videos-plugin-questions-and-support-thread/page-35&do=findComment&comment=587018

 

https://emby.media/community/index.php?/topic/2007-movie-theme-videos-plugin-questions-and-support-thread/page-35&do=findComment&comment=587380

 

 

 

The plugins were completely rewritten when the main core was changed to .net core. I essentially put out a poll to get people's views on what I should do about an upgrade path and It was agreed that it would be a repurchase. This was back all back in 2018.

 

Cheers!

pgriffith
Posted (edited)

Fair enough, I did miss that :)

 

Just purchased the Pack.

Edited by pgriffith
Scott310
Posted

Hey @radeonare we by any chance any closer to being able to identify when someone uploads a trailer into backdrops and stopping it from uploading to the network? Or maybe even a way we can vote down certain backdrops if they don't adhere to the standard of a backdrop? Everytime I  run the plugin now for a new movie I have to remove the trailer that someone uploaded from backdrops. But then this also (if I'm not mistaken) tells the system that a backdrop has already been uploaded and downloaded for that movie so if someone like myself uploads the proper backdrop it will already have one in it's place - the trailer. It would be great if there was a way to clean this up or at least stop trailers from being uploaded if that is what someone wants to do. 

pgriffith
Posted

Should I have an Upload Local TV Theme Songs under Radeon's Tools in scheduled tasks? Because I do not.

I have 7 tasks in total for downloading and uploading everything else. I've added some of my own TV Theme Songs and want to share them with the Contributors Network.

cbdudek
Posted

I realized that I haven't downloaded any new Local Movie Theme Videos in the last couple years.  So over the weekend I ran the scheduled task manually.  It made it to 25% and was stuck for 24 hours.  So I terminated the task, and I had to restart the server to get it to stop.  I then kicked it off again yesterday.  It made it to 19% and froze.  I just stopped it again.  Anyone having an issue downloading the Local Movie Theme Videos?  Any ideas?

  • 2 weeks later...
cbdudek
Posted (edited)

Just a followup to this.  I have been running it off and on over the past several days.  It has never fully finished.  Today it got to 69.8% and froze.  I am wondering if I should just setup a terminate process trigger in the Local Movie Theme Videos process that I created in scheduled tasks.  I honestly don't know what the cause of the freeze is, but I can upload logs if that would help.  Which logs would you need to troubleshoot?

On a side note, if I try to stop the task, the task never ends.  It just says "stopping" and it stays stuck.  The only way to get the service to completely stop is to restart the emby service. 

Edited by cbdudek
  • 1 month later...
radeon
Posted

Hey all, I'm heartbroken to say my dad passed away on Monday 1st July after a 6 year battle with heart attacks, an Abdominal Aortic Aneurysm, Parkinsons and Progressive Supranuclear Palsy. I'm going to be taking some time out from everything for a while. Don't worry, I'm not going anywhere for long and will return in the coming weeks, I just need to take some time for all the usual reasons you'd expect. Please bear with me. I will be back. 

  • Sad 4
  • 2 weeks later...
apachelance
Posted (edited)

I hope radeon is well. 

I have an issue with the Movie Theme plugin. I am running emby on a Proxmox server in a container. The movie library is located on a NAS which is connected via NFS to the emby server. Playback and even deleting movies through the emby user interface is  just fine. However downloading movie themes is not working in many cases. Example log attached. To me it looks like that the download from mediafire itself is working and the downloaded song is converted but the download/transfer to the NAS is not working. Maybe a script failure (ffmpeg) or an issue with folder rights (cache/temp) or the cached file is deleted before it can be downloaded/moved to the NAS? However after ffmpeg normalised the file successfuly the temporary file cannot be found according to the log.

Anybody has an idea how to fix it?

 

2024-07-19 19:24:41.577 Info HttpClient: GET http://www.mediafire.com/download/wpquh0p0f7gloik
2024-07-19 19:24:41.916 Info App: Movie Theme Songs - Found movie theme song for Atlas
2024-07-19 19:24:41.916 Info HttpClient: GetTempFileResponse url: http://download2291.mediafire.com/89i79950ychgUG47GKvhDW1odSBVhP18mN8GhCShc1VXvvVKkCkjgw2LGQxLvTFx4dUM7r7VHlvDrmtvPSqVvMGG1loUXfClNVJ2Wdw-Pd-ZszBWSJJ4LUKPxXvBOurNHZ5Tc3rA7FCcrxor4qJbvjfVVRy66fjeUTVW52caodc/wpquh0p0f7gloik
2024-07-19 19:24:41.916 Info HttpClient: GET http://download2291.mediafire.com/89i79950ychgUG47GKvhDW1odSBVhP18mN8GhCShc1VXvvVKkCkjgw2LGQxLvTFx4dUM7r7VHlvDrmtvPSqVvMGG1loUXfClNVJ2Wdw-Pd-ZszBWSJJ4LUKPxXvBOurNHZ5Tc3rA7FCcrxor4qJbvjfVVRy66fjeUTVW52caodc/wpquh0p0f7gloik
2024-07-19 19:28:22.772 Info App: Movie Theme Songs - Moving /var/lib/emby/cache/temp/787c9929-93bf-4392-ae6c-9e9cecec9219.tmp to /mnt/synology/test/A/Atlas (2024)/theme.x-matroska
2024-07-19 19:28:22.772 Info App: Movie Theme Songs ffmpeg path : /opt/emby-server/bin/ffmpeg
2024-07-19 19:28:22.772 Info App: Movie Theme Songs ffmpeg params : -i "/var/lib/emby/cache/temp/787c9929-93bf-4392-ae6c-9e9cecec9219.tmp" -t 10 -af volumedetect -f null –
2024-07-19 19:28:26.878 Info App: Movie Theme Songs ffmpeg path : /opt/emby-server/bin/ffmpeg
2024-07-19 19:28:26.878 Info App: Movie Theme Songs ffmpeg params : -i "/var/lib/emby/cache/temp/787c9929-93bf-4392-ae6c-9e9cecec9219.tmp" -acodec libmp3lame -ac 2 -ar 44100 -ab 128000 -af "volume=-15dB" "/var/lib/emby/cache/temp/787c9929-93bf-4392-ae6c-9e9cecec9219.tmp.x-matroska
2024-07-19 19:28:26.885 Info App: Movie Theme Songs - Volume Normalised Successfully
2024-07-19 19:28:26.892 Error App: Movie Theme Songs - Error downloading file from host
*** Error Report ***
Version: 4.8.8.0
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Linux version 6.8.8-3-pve (build@proxmox) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX 6.8.8-3 (2
Framework: .NET 6.0.25
OS/Process: x64/x64
Runtime: opt/emby-server/system/System.Private.CoreLib.dll
Processor count: 2
Data path: /var/lib/emby
Application path: /opt/emby-server/system
System.IO.FileNotFoundException: System.IO.FileNotFoundException: Could not find file '/var/lib/emby/cache/temp/787c9929-93bf-4392-ae6c-9e9cecec9219.tmp.x-matroska'.
File name: '/var/lib/emby/cache/temp/787c9929-93bf-4392-ae6c-9e9cecec9219.tmp.x-matroska'
at System.IO.File.Move(String sourceFileName, String destFileName, Boolean overwrite)
at System.IO.File.Move(String sourceFileName, String destFileName)
at MovieThemeSongs.Search.LocalMovieThemeSongDownloader.DownloadMovieThemeSongForItem(BaseItem item, CancellationToken cancellationToken, String html, String data, String uploadedhtml, ILibraryManager libraryManager)
Source: System.Private.CoreLib
TargetSite: Void Move(System.String, System.String, Boolean)

 

Edited by apachelance

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