Jump to content

Backup / Restore Actors - Beta with local or web based restore.


Go to solution Solved by GrimReaper,

Recommended Posts

Posted

only hast problems with special caracters during the import from csv.

é for example is imported as a questionmark inside a square --> don't know how to translate it into english

think has here problems with UTF

mickle026
Posted

OK, added a utf8 conversion to the text to provide utf support

so Acción becomes Acción

Again, not tested this

 

CustomProviderStable.zip

Posted

not working. import for é is

 

10914.jpg

mickle026
Posted

perhaps your text file is a different encoding such as utf16 utf16le or utf32 ?

Posted

arrrr, yes. Didn't set the encoding in my powershell. now is working

Dez_Lamar
Posted

@mickle026 Is it possible to use this plug-in to backup actors in a specific library? Like for example if I just wanted to back up actors from my tv show library would I be able to do that?

mickle026
Posted
2 hours ago, TallBoiDez said:

@mickle026 Is it possible to use this plug-in to backup actors in a specific library? Like for example if I just wanted to back up actors from my tv show library would I be able to do that?

In the current form this is only supported to the media folers via creating kodi style ".actors" folders.  It is not the same as People backup as it doesnt save anything oither than the images.

  • Thanks 1
  • 1 month later...
Posted
On 10/23/2022 at 3:31 AM, Spegeli said:

Any new Updates of this Plugin?

Hi, what kind of update are you looking for?

mickle026
Posted

It will be a while before anything is released because the plugin is getting a full rewrite to remove the existing issues. 

New items will be in the new release when its ready.

It'll completely replace this version.

  • 1 month later...
Posted

Is it just me or does the IMDB Person Image Scraper no longer work?

For a while, it was occasionally failing to fetch an image, but now I no longer see any IMDB images.

  • 5 weeks later...
GrimReaper
Posted

Run "Backup People (Movie and Series Cast Images)" task, backup folder created however not a single image created, NFOs only. 4.7.10.0 stable.

image.png.efd5cf856b136e5999b11092bec1db5b.png

image.png.61936a24e7e3bdc0db99f7f271939b30.png

image.png.a4110b7b0414077293a48fa2a3e75b9f.png

 

image.png.e7c86a8a7fe1852e22b2f3eb7df85517.png

mickle026
Posted

ok, im busy right now but ill take a look when i have time.

Thanks for letting me know.

  • 1 year later...
Posted (edited)

I am happy finding this plugin. unfortunately it seems not to work with emby 4.8.1.0. I just need a bulk refresh of people/actors. Can anyone help me how to do it now?
@mickle026: Are you still coding at this plugin? I do also need a solution to export/import collections (songs, album, artists etc). There is no way within emby right now.

Edited by letterman
  • 10 months later...
Posted

@mickle026are you still working on this? If not do you have a git that you can share. I need the livetv logo refresh. 

 

Thank you

mickle026
Posted

The answer is no. I am very slowly working on a different (new) version which has a lot better and more robust code now im 2 years on in my c# learning...

However the plugin is still avaliable a few posts above this on (in page 10) and the live tv logo removal tool still works in it.  Just use it for that and remove it again, a lot of the original plugin is redundant.  It still removes the logos, and then when you run a guide update afterwards they will re-populate.

  • Thanks 1
  • 2 weeks later...
Posted
On 22/12/2024 at 16:39, mickle026 said:

and the live tv logo removal tool still works in it

Might just be me but it looks like this is broken now also? (Emby server version 4.8.10.0, plugin version 1.0.0.3752 from 29-Aug post)

It gives that "Finished!" message with the log filename (although I can't find any such files on the server), but the channel logos are still present.

Posted
On 1/2/2025 at 10:34 PM, phoenix4 said:

Might just be me but it looks like this is broken now also? (Emby server version 4.8.10.0, plugin version 1.0.0.3752 from 29-Aug post)

It gives that "Finished!" message with the log filename (although I can't find any such files on the server), but the channel logos are still present.

I ran into the same issue but found that there was a script made by @BillOatmanI altered the script so that will remove logos and refresh guide by CLI if you want to use it.
https://github.com/sftech13/EmbyRefreshLogos

 

 

BillOatman
Posted
3 hours ago, sftech13 said:

I ran into the same issue but found that there was a script made by @BillOatmanI altered the script so that will remove logos and refresh guide by CLI if you want to use it.
https://github.com/sftech13/EmbyRefreshLogos

 

 

Maybe should rename to EmbyRemoveLogos :)

  • Facepalm 1
mickle026
Posted (edited)

Strange. but I am not arguing , this old plugin is long since depricated.

However , I just copied the code to my new plugin that I am working on, didnt change a thing (except the logging because I use a better method now) and it works flawlesly.  So there must be something changed in the old plugin nuget server core.  I cannot see that any of that would matter though but it must do if it isnt working.

07.Jan.2025  -  15.33.31[Delete Logos] Found 432 Channels
07.Jan.2025  -  15.33.31[Delete Logos] looking at Channel (1): BBC TWO
Deleting Primary Image: BBC TWO
Deleting LogoLight Image: BBC TWO
Deleting LogoLightColor Image: BBC TWO
07.Jan.2025  -  15.33.31[Delete Logos] looking at Channel (2): ITV1
Deleting Primary Image: ITV1
Deleting LogoLight Image: ITV1
Deleting LogoLightColor Image: ITV1
07.Jan.2025  -  15.33.31[Delete Logos] looking at Channel (3): Channel 4
Deleting Primary Image: Channel 4
Deleting LogoLight Image: Channel 4
Deleting LogoLightColor Image: Channel 4
07.Jan.2025  -  15.33.31[Delete Logos] looking at Channel (4): Channel 5
Deleting Primary Image: Channel 5
Deleting LogoLight Image: Channel 5
Deleting LogoLightColor Image: Channel 5
07.Jan.2025  -  15.33.31[Delete Logos] looking at Channel (5): ITV2
Deleting Primary Image: ITV2
Deleting LogoLight Image: ITV2
Deleting LogoLightColor Image: ITV2
07.Jan.2025  -  15.33.31[Delete Logos] looking at Channel (6): BBC FOUR
Deleting Primary Image: BBC FOUR
Deleting LogoLight Image: BBC FOUR
Deleting LogoLightColor Image: BBC FOUR
07.Jan.2025  -  15.33.31[Delete Logos] looking at Channel (7): ITV3
Deleting Primary Image: ITV3
Deleting LogoLight Image: ITV3
Deleting LogoLightColor Image: ITV3

If any one wants to do this in c#, it is really simple:-

This is all I do, get a list of tv channels, then go through them deleting the 3 types of logo (Primary, LogoLight and LogoLightColor) directly updating the library with library manager.  Of course you can do this in any language.  This can be made even simpler and streamlined if you care to do it, this is old code.

       public string RunDeleteLiveTVChannelLogos(string logname, string OptionalPath = "")
        {
            config = Plugin.Instance.Configuration;
            Current = this;
            string LogPath = Current.configurationManager.ApplicationPaths.LogDirectoryPath;
            string currentlog = Path.Combine(LogPath, $"MechBox-[{logname}]-" + DateTime.Now.ToString("dd.MMM.yyy-HH'.'mm'.'ss") + ".txt");

            var log = new FileLogging();

            var AllChannels = libraryManager.GetInternalItemIds(new InternalItemsQuery
            {
                IncludeItemTypes = new[] { typeof(LiveTvChannel).Name } 
            });
            log.LogToMyFile(currentlog, DateTime.Now.ToString("dd.MMM.yyy  -  HH'.'mm'.'ss") + $"[Delete Logos] Found {AllChannels.Length} Channels");

            var i = 0;

            foreach (var SingleChannel in AllChannels)
            {

                i++;
                var channelNameID = libraryManager.GetItemById(SingleChannel);
                var pImage = channelNameID.GetImages(ImageType.Primary);
                var pImage2 = channelNameID.GetImages(ImageType.LogoLight);
                var pImage3 = channelNameID.GetImages(ImageType.LogoLightColor);
                try
                {
                    log.LogToMyFile(currentlog, DateTime.Now.ToString("dd.MMM.yyy  -  HH'.'mm'.'ss") + $"[Delete Logos] looking at Channel ({i}): {channelNameID.Name}");
                    foreach (var imag in pImage)
                    {
                        channelNameID.DeleteImage(ImageType.Primary, 0); 
                        libraryManager.UpdateImages(channelNameID);
                        log.LogToMyFile(currentlog, $"Deleting Primary Image: {channelNameID}");
                    }
                    foreach (var imag in pImage2)
                    {
                        channelNameID.DeleteImage(ImageType.LogoLight, 0); 
                        libraryManager.UpdateImages(channelNameID);
                        log.LogToMyFile(currentlog, $"Deleting LogoLight Image: {channelNameID}");
                    }
                    foreach (var imag in pImage3)
                    {
                        channelNameID.DeleteImage(ImageType.LogoLightColor, 0);
                        libraryManager.UpdateImages(channelNameID);
                        log.LogToMyFile(currentlog, $"Deleting LogoLightColor Image: {channelNameID}");
                    }
                }
                catch (Exception e)
                {
                    log.LogToMyFile(currentlog, $"Exception: {e.ToString()}");
                }
            }

            log.LogToMyFile(currentlog, DateTime.Now.ToString("dd.MMM.yyy  -  HH'.'mm'.'ss") + $"[Delete Logos] Completed.");
            string output = "Completed.";

            return output;
        }

 

Edited by mickle026
  • Thanks 1
Posted

I ended up doing the same thing in nodered actually, although only for the primary images as those are the ones synchronised from tvheadend.

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