Пример #1
0
        private static string GetDirPathForSaveMedia(Movie getMovies)
        {
            var typeFolder = "default";

            if (getMovies.Kind == 1)
            {
                typeFolder = "Movies";
            }

            if (getMovies.Kind == 2)
            {
                typeFolder = "Series";
            }

            var saveToDir = Config.BaseFilePath() + typeFolder + "/" + getMovies.Nb.ToString() + "/" + HelperFunctions.Base64Encode(getMovies.EnTitle);

            return(saveToDir);
        }
Пример #2
0
        private static string GetDirPath(Movie getMovies, TranscoddedFilesJson getMovieLink)
        {
            var typeFolder = "default";

            if (getMovies.Kind == 1)
            {
                typeFolder = "Movies";
            }

            if (getMovies.Kind == 2)
            {
                typeFolder = "Series";
            }

            var saveToDir = Config.BaseFilePath() + typeFolder + "/" + getMovies.Nb.ToString() + "/" + HelperFunctions.Base64Encode(getMovies.EnTitle) + "/" + getMovieLink.Resolution;

            return(saveToDir);
        }