phbusfan / fanart-handler

Automatically exported from code.google.com/p/fanart-handler
0 stars 0 forks source link

Random Fanart is not Random when fanart can not be found #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Select an item that has fanart associated with it. Result: Fanart loads.

2. Select an item that does not have fanart. Result: Random Fanart loads.

3. Select another item that has fanart. Result: Fanart Loads.

4. Select another item that does not have fanart. Fanart is the same as in Step 
2 ie it keeps cycling the same ones from beginning.

Same thing happens in NowPlaying when you encounter artists with no fanart. 

Original issue reported on code.google.com by damien.haynes@gmail.com on 16 Nov 2010 at 5:47

GoogleCodeExporter commented 8 years ago

Original comment by markus_e...@telia.com on 13 Dec 2010 at 6:07

GoogleCodeExporter commented 8 years ago
to fix this just add these lines of code to GetRandomDefaultBackdrop in 
FanartHandlerSetup.cs

...
        public static string GetRandomDefaultBackdrop(ref string currFile, ref int iFilePrev)
        {
            string sout = String.Empty;
            if (iFilePrev == -1)
            {
                  // this will shuffle the backdropimages
                  Utils.Shuffle(ref defaultBackdropImages);
            }
            try
...

Original comment by DeereJ...@gmail.com on 6 Aug 2011 at 6:52

Attachments: