diff options
| author | Mole Shang <135e2@135e2.dev> | 2023-08-08 23:19:14 +0800 | 
|---|---|---|
| committer | Mole Shang <135e2@135e2.dev> | 2023-08-08 23:19:14 +0800 | 
| commit | e63cddca442dd4f8f7124e7827e347fe5046e416 (patch) | |
| tree | 16987a5114d14f76692a74c84b8c25cd0bfdc0eb /src/extractors | |
| parent | 02c045e6e7217c590acba5f8acc63e25f3b542b9 (diff) | |
| download | hinata-e63cddca442dd4f8f7124e7827e347fe5046e416.tar.gz hinata-e63cddca442dd4f8f7124e7827e347fe5046e416.tar.bz2 hinata-e63cddca442dd4f8f7124e7827e347fe5046e416.zip | |
utils: expose mimeType2ext in utils
Diffstat (limited to 'src/extractors')
| -rw-r--r-- | src/extractors/bilibili.c | 19 | 
1 files changed, 0 insertions, 19 deletions
| diff --git a/src/extractors/bilibili.c b/src/extractors/bilibili.c index f14432e..cdb2d62 100644 --- a/src/extractors/bilibili.c +++ b/src/extractors/bilibili.c @@ -310,25 +310,6 @@ static int generate_api(Bilibili_options *bilibili_options, const int quality) {    return 0;  } -static const char *mimeType2ext(const char *mimeType) { -  static char mimeType_l[CHAR_MAX]; -  strcpy(mimeType_l, mimeType); -  const char *exts[2]; -  size_t extsCount = 0; - -  char *token = strtok(mimeType_l, "/"); -  while (token != NULL && extsCount < 2) { -    exts[extsCount++] = token; -    token = strtok(NULL, "/"); -  } - -  if (extsCount == 2) { -    return exts[1]; -  } - -  return "mp4"; // Cannot parse, use default -} -  static const char *id2quality_desc(int id) {    const char *desc;    switch (id) { | 
