summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2023-08-07ui: correct stat types' print formatMole Shang1-2/+3
- Use libcurl's builtin macro CURL_FORMAT_CURL_OFF_T to correctly print status. - Cast pct to unsigned char as it should always <= 100
2023-08-07utils: split type definition code into utils/typesMole Shang7-167/+182
2023-08-07utils: move to a separate folderMole Shang6-5/+5
2023-08-07extractors/bilibili: format logsMole Shang1-5/+5
2023-08-07extractors/bilibili: use ffmpeg to merge files once downloadedMole Shang5-38/+277
2023-08-06process_url: initial callback supportMole Shang4-17/+63
2023-08-06process_url: move constant macros to constants.hMole Shang3-4/+4
2023-08-06process_url: strip illegal characters in filenameMole Shang3-0/+22
There are edge cases when a retrived title contains illegal characters (e.g. '/'). Replace it with a space to ensure a valid filename. Reproducible case: https://www.bilibili.com/video/av20827366/ (title="【2K/60fps】这可能是我做过最美的miku了【boomclap布料解算版】")
2023-08-06bilibili: fix page matchingMole Shang1-1/+1
Always use the second result.
2023-08-06hinata: set locale to UTF-8 by defaultMole Shang1-0/+4
Enable UTF-8 mode on Windows to avoid filename encoding issues. Ref: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale?view=msvc-170#utf-8-support
2023-08-06xmake: migrate from NFD to tinyfiledialogsMole Shang2-14/+5
nativefiledialog-extended works great on Linux w/ portal support, but somehow is too complex to build on Windows. [1] Switch to tinyfd for simplicity. [1]: Visual Studio CL.exe would fail with MSB6001. ``` Error MSB6001: Invalid command line switch for "CL.exe". Item has already been added. Key in dictionary: 'VCInstallDir' Key being added: 'VCINSTALLDIR' ``` For further information, see below: https://social.msdn.microsoft.com/Forums/vstudio/en-US/5de6d7e3-7a38-4712-ba59-be179808bf9e/error-msb6001-invalid-command-line-switch-for-clexe https://github.com/dotnet/msbuild/issues/5726 It's been over 10 years, and Microsoft still claims that case sensitivity thing is a FEATURE. Holy M$, Thank you.
2023-08-05hinata: initial commitMole Shang16-0/+1973