comparison src/track/constants.cc @ 118:39521c47c7a3

*: another huge megacommit, SORRY The torrents page works a lot better now Added the edit option to the anime list right click menu Vectorized currently playing files Available player and extensions are now loaded at runtime from files in (dotpath)/players.json and (dotpath)/extensions.json These paths are not permanent and will likely be moved to (dotpath)/recognition ... ... ...
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 23:40:54 -0500
parents f5940a575d83
children
comparison
equal deleted inserted replaced
117:2c1b6782e1d0 118:39521c47c7a3
1 #include "track/constants.h" 1 #include "track/constants.h"
2
3 // clang-format off
4 // https://github.com/llvm/llvm-project/issues/62676
5 2
6 /* right now, these are just const vectors, but eventually 3 /* right now, these are just const vectors, but eventually
7 I'll make a class to manage these and make them disableable */ 4 I'll make a class to manage these and make them disableable */
8 const std::vector<std::string> media_extensions = { 5
6 namespace Track {
7 namespace Constants {
8
9 const std::vector<std::string> default_media_extensions = {
9 "mkv", 10 "mkv",
10 "mp4", 11 "mp4",
11 "m4v", /* apple's stupid DRM thing */ 12 "m4v", /* apple's stupid DRM thing */
12 "avi", 13 "avi",
13 "webm", /* matroska's retarded inbred cousin */ 14 "webm", /* matroska's retarded inbred cousin */
44 "nsv", 45 "nsv",
45 /* Material Exchange Format (Sony?) */ 46 /* Material Exchange Format (Sony?) */
46 "mxf" 47 "mxf"
47 }; 48 };
48 49
49 const std::vector<std::string> media_players = { 50 const std::vector<std::string> default_media_players = {
50 #ifdef MACOSX 51 #ifdef MACOSX
51 "VLC", "IINA", "QuickTime Player" 52 "VLC", "IINA", "QuickTime Player"
52 #elif WIN32 53 #elif WIN32
53 "vlc.exe", "mpc-hc.exe", "mpc-hc64.exe", "wmplayer.exe", "mpv.exe" 54 "vlc.exe", "mpc-hc.exe", "mpc-hc64.exe", "wmplayer.exe", "mpv.exe"
54 #else // linux, unix, whatevs 55 #else // linux, unix, whatevs
55 "vlc", "mpv", "mpc-qt" 56 "vlc", "mpv", "mpc-qt"
56 #endif 57 #endif
57 }; 58 };
58 // clang-format on 59
60 }
61 }