11using System ;
2- using System . IO ;
32using FileMasta . Utilities ;
43
54namespace FileMasta . Extensions
@@ -9,49 +8,41 @@ class LocalExtensions
98 /// <summary>
109 /// User's directories
1110 /// </summary>
12- public static string pathRoot = $@ "{ Environment . GetFolderPath ( Environment . SpecialFolder . MyDocuments ) } \FileMasta\";
13- public static string pathData = $@ "{ pathRoot } Data\";
14- public static string pathDownloadsDirectory = $@ "{ KnownFolders . GetPath ( KnownFolder . Downloads ) } \";
15- public static string pathVideosDirectory = $@ "{ KnownFolders . GetPath ( KnownFolder . Videos ) } \";
16- public static string pathMusicDirectory = $@ "{ KnownFolders . GetPath ( KnownFolder . Music ) } \";
17- public static string pathDocumentsDirectory = $@ "{ KnownFolders . GetPath ( KnownFolder . Documents ) } \";
18- public static string pathDesktopDirectory = $@ "{ KnownFolders . GetPath ( KnownFolder . Desktop ) } \";
19- public static string pathBookmarks = $@ "{ pathRoot } bookmarked.json";
11+ public static string PathRoot { get ; } = $@ "{ Environment . GetFolderPath ( Environment . SpecialFolder . MyDocuments ) } \FileMasta\";
12+ public static string PathData { get ; } = $@ "{ PathRoot } Data\";
13+ public static string PathDownloadsDirectory { get ; } = $@ "{ KnownFolders . GetPath ( KnownFolder . Downloads ) } \";
14+ public static string PathVideosDirectory { get ; } = $@ "{ KnownFolders . GetPath ( KnownFolder . Videos ) } \";
15+ public static string PathMusicDirectory { get ; } = $@ "{ KnownFolders . GetPath ( KnownFolder . Music ) } \";
16+ public static string PathDocumentsDirectory { get ; } = $@ "{ KnownFolders . GetPath ( KnownFolder . Documents ) } \";
17+ public static string PathDesktopDirectory { get ; } = $@ "{ KnownFolders . GetPath ( KnownFolder . Desktop ) } \";
18+ public static string PathBookmarks { get ; } = $@ "{ PathRoot } bookmarked.json";
2019
2120 /// <summary>
2221 /// Supported media players
2322 /// </summary>
24- public const string pathVLC = @"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" ;
25- public const string pathMPCCodec64 = @"C:\Program Files(x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe" ;
26- public const string pathMPC64 = @"C:\Program Files\MPC-HC\mpc-hc64.exe" ;
27- public const string pathMPC86 = @"C:\Program Files (x86)\MPC-HC\mpc-hc.exe" ;
28- public const string pathKMPlayer = @"C:\KMPlayer\KMPlayer.exe" ;
29- public const string pathPotPlayer = @"C:\Program Files\DAUM\PotPlayer\PotPlayerMini64.exe" ;
23+ public const string _pathVLC = @"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" ;
24+ public const string _pathMPCCodec64 = @"C:\Program Files(x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe" ;
25+ public const string _pathMPC64 = @"C:\Program Files\MPC-HC\mpc-hc64.exe" ;
26+ public const string _pathMPC86 = @"C:\Program Files (x86)\MPC-HC\mpc-hc.exe" ;
27+ public const string _pathKMPlayer = @"C:\KMPlayer\KMPlayer.exe" ;
28+ public const string _pathPotPlayer = @"C:\Program Files\DAUM\PotPlayer\PotPlayerMini64.exe" ;
3029
3130 /// <summary>
3231 /// Supported PDF viewers
3332 /// </summary>
34- public const string pathNitroReader = @"C:\Program Files\Nitro\Reader 5\NitroPDFReader.exe" ;
33+ public const string _pathNitroReader = @"C:\Program Files\Nitro\Reader 5\NitroPDFReader.exe" ;
3534
3635 /// <summary>
3736 /// Supported download managers
3837 /// </summary>
39- public const string pathIDM64 = @"C:\Program Files\Internet Download Manager\IDMan.exe" ;
40- public const string pathIDM86 = @"C:\Program Files (x86)\Internet Download Manager\IDMan.exe" ;
41- public const string pathFDM = @"C:\Program Files\FreeDownloadManager.ORG\Free Download Manager\fdm.exe" ;
42- public const string pathIDA = @"C:\Program Files (x86)\IDA\ida.exe" ;
38+ public const string _pathIDM64 = @"C:\Program Files\Internet Download Manager\IDMan.exe" ;
39+ public const string _pathIDM86 = @"C:\Program Files (x86)\Internet Download Manager\IDMan.exe" ;
40+ public const string _pathFDM = @"C:\Program Files\FreeDownloadManager.ORG\Free Download Manager\fdm.exe" ;
41+ public const string _pathIDA = @"C:\Program Files (x86)\IDA\ida.exe" ;
4342
4443 /// <summary>
45- /// Checks for exact file name of a subtitle file that matches the web filename (e.g. File Name: 'Jigsaw.2017.mp4' > Subtitle File Name: 'Jigsaw.2017.srt' will be loaded)
44+ /// Supported FTP clients
4645 /// </summary>
47- /// <param name="fileURL"></param>
48- /// <returns></returns>
49- public static bool IsSubtitlesAvailable ( string fileURL )
50- {
51- if ( File . Exists ( pathDownloadsDirectory + Path . GetFileNameWithoutExtension ( new Uri ( fileURL ) . LocalPath ) + ".srt" ) )
52- return true ;
53- else
54- return false ;
55- }
46+ public const string _pathFileZilla = @"C:\Program Files\FileZilla FTP Client\filezilla.exe" ;
5647 }
5748}
0 commit comments