コード例 #1
0
        private static AudioFileOptions ArtistAlbum_Pass2(AudioFileOptions pass1)
        {
            //Backwards Search
            AudioFileOptions pass2 = new AudioFileOptions();

            foreach (AudioFileOption option in pass1.GetAudioFileOptions)
            {
                option.ScoreArtistAlbumPoints();

                pass2.AddAudioFileOption(option);
            }

            pass2.KeepBetterOptions();

            return(pass2);
        }
コード例 #2
0
        private static AudioFileOptions Track_Pass2(AudioFileOptions pass1)
        {
            //Forwards Search
            AudioFileOptions pass2 = new AudioFileOptions();

            foreach (AudioFileOption option in pass1.GetAudioFileOptions)
            {
                option.ScoreTrackNumberTrackPoints(SearchMethodType.Forwards);

                pass2.AddAudioFileOption(option);
            }

            pass2.KeepBetterOptions();

            return(pass2);
        }
コード例 #3
0
        private static AudioFileOptions Track_Pass1(AudioLibrary audioLibrary, TokensCollection tokens)
        {
            //Backwards Search
            AudioFileOptions pass1 = new AudioFileOptions();

            foreach (AudioLibraryFile file in audioLibrary.GetAudioLibraryFiles)
            {
                AudioFileOption newOption = new AudioFileOption(file, tokens);

                newOption.ScoreTrackNumberTrackPoints(SearchMethodType.Backwards);

                pass1.AddAudioFileOption(newOption);
            }

            pass1.KeepBetterOptions();

            return(pass1);
        }
コード例 #4
0
        private static AudioFileOptions ArtistAlbum_Pass1(AudioLibrary audioLibrary, TokensCollection tokens)
        {
            //Forwards Search
            AudioFileOptions pass1 = new AudioFileOptions();

            foreach (AudioLibraryFile file in audioLibrary.GetAudioLibraryFiles)
            {
                AudioFileOption newOption = new AudioFileOption(file, tokens);

                newOption.ScoreArtistAlbumPoints();

                pass1.AddAudioFileOption(newOption);
            }

            pass1.KeepBetterOptions();

            return(pass1);
        }