Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-08-09 | tree-wide: pass pointer-to-pointer to correctly free pointers | Mole Shang | 8 | -49/+53 | |
2023-08-09 | extractors/bilibili: fix page in filename | Mole Shang | 1 | -4/+16 | |
2023-08-09 | process_url: copy only if p_cookie is valid | Mole Shang | 1 | -2/+4 | |
2023-08-09 | Revert "process_url: always match substrings instead of comparing" | Mole Shang | 2 | -2/+3 | |
Target video files can also be under the domain, revert the commit for now. Needs further implemention. This reverts commit 9c2b0b39d73da02bb9d255e9dc7f81db200930b1. | |||||
2023-08-09 | process_url: set referer in the separate function | Mole Shang | 5 | -17/+12 | |
2023-08-09 | process_url: only get content length when requested | Mole Shang | 1 | -4/+6 | |
2023-08-09 | process_url: expose some new functions to be control cookies and referer | Mole Shang | 3 | -7/+34 | |
2023-08-09 | utils/types: support resizing an array to 0 | Mole Shang | 1 | -4/+15 | |
2023-08-09 | process_url: always match substrings instead of comparing | Mole Shang | 2 | -3/+2 | |
2023-08-09 | extractors/haokan: catch get errors | Mole Shang | 1 | -29/+30 | |
2023-08-09 | extractors/bilibili: fix get page query | Mole Shang | 1 | -1/+1 | |
Since cee1e6c, the first match should be always in result.str[0] | |||||
2023-08-08 | extractors: support haokan videos | Mole Shang | 4 | -4/+64 | |
2023-08-08 | utils: expose mimeType2ext in utils | Mole Shang | 3 | -19/+21 | |
2023-08-08 | utils: add a method to substitute string using PCRE | Mole Shang | 2 | -1/+61 | |
2023-08-08 | process_url: expose get_info with a new param `p_content_type` | Mole Shang | 2 | -7/+14 | |
2023-08-08 | utils: fix multi-patterns matching | Mole Shang | 1 | -7/+5 | |
2023-08-08 | process_url: copy full URL | Mole Shang | 1 | -2/+2 | |
2023-08-08 | process_url: change strings to be dynamic allocated | Mole Shang | 2 | -6/+7 | |
2023-08-08 | ui: add about menu | Mole Shang | 1 | -1/+33 | |
2023-08-08 | ui: match size measures with corresponding units | Mole Shang | 3 | -4/+47 | |
Calculate the size in UI to align with suitable units. | |||||
2023-08-08 | process_url: do not block ui thread on callback | Mole Shang | 3 | -6/+9 | |
2023-08-08 | utils/ffmpeg: close all inputs during cleanup | Mole Shang | 1 | -0/+1 | |
... so that we can safely remove the file later. | |||||
2023-08-07 | hinata: support specifying cookies in curl_easy | Mole Shang | 3 | -3/+36 | |
We use tomlc99 to parse strings. To use cookies for higher resolution video downloading, add a config.toml in the executable path. e.g. ```filename: config.toml cookie="SESSDATA=xxx; some_more_cookie=xxx" ``` | |||||
2023-08-07 | process_url: use goto to simplify error processing | Mole Shang | 1 | -8/+5 | |
2023-08-07 | process_url: add retries while downloading | Mole Shang | 2 | -3/+11 | |
2023-08-07 | extractors/bilibili: append page info in filename (if possible) | Mole Shang | 1 | -3/+8 | |
Also fixes an malloc size error. Previously we allocated too small memory for callback_struct.filename, which in turn leads to unexpected memory corruption. | |||||
2023-08-07 | process_url: free malloc'd data | Mole Shang | 1 | -3/+4 | |
2023-08-07 | extractors/extractor: add missing header | Mole Shang | 1 | -0/+1 | |
2023-08-07 | ui: correct stat types' print format | Mole Shang | 1 | -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-07 | utils: split type definition code into utils/types | Mole Shang | 7 | -167/+182 | |
2023-08-07 | utils: move to a separate folder | Mole Shang | 6 | -5/+5 | |
2023-08-07 | extractors/bilibili: format logs | Mole Shang | 1 | -5/+5 | |
2023-08-07 | extractors/bilibili: use ffmpeg to merge files once downloaded | Mole Shang | 5 | -38/+277 | |
2023-08-06 | process_url: initial callback support | Mole Shang | 4 | -17/+63 | |
2023-08-06 | process_url: move constant macros to constants.h | Mole Shang | 3 | -4/+4 | |
2023-08-06 | process_url: strip illegal characters in filename | Mole Shang | 3 | -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-06 | bilibili: fix page matching | Mole Shang | 1 | -1/+1 | |
Always use the second result. | |||||
2023-08-06 | hinata: set locale to UTF-8 by default | Mole Shang | 1 | -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-06 | xmake: migrate from NFD to tinyfiledialogs | Mole Shang | 2 | -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-05 | hinata: initial commit | Mole Shang | 16 | -0/+1973 | |