mirror of https://github.com/mpv-player/mpv
stream_libarchive: remove "old" rar volume pattern
This turned every "normal" .rar filename into a multi-volume one accidentally. Since the detection is purely by filename (due to lack of support by libarchive I guess), it causes the nasty message added in the previous commit to appear for every .rar file. Just drop it.
This commit is contained in:
parent
119bad4daa
commit
1b0129c414
|
@ -192,13 +192,6 @@ static char *standard_volume_url(void *ctx, const char *format,
|
|||
return talloc_asprintf(ctx, format, BSTR_P(base), index);
|
||||
}
|
||||
|
||||
static char *old_rar_volume_url(void *ctx, const char *format,
|
||||
struct bstr base, int index)
|
||||
{
|
||||
return talloc_asprintf(ctx, format, BSTR_P(base),
|
||||
'r' + index / 100, index % 100);
|
||||
}
|
||||
|
||||
struct file_pattern {
|
||||
const char *match;
|
||||
const char *format;
|
||||
|
@ -213,7 +206,6 @@ static const struct file_pattern patterns[] = {
|
|||
{ ".part01.rar", "%.*s.part%.2d.rar", standard_volume_url, 2, 99 },
|
||||
{ ".part001.rar", "%.*s.part%.3d.rar", standard_volume_url, 2, 999 },
|
||||
{ ".part0001.rar", "%.*s.part%.4d.rar", standard_volume_url, 2, 9999 },
|
||||
{ ".rar", "%.*s.%c%.2d", old_rar_volume_url, 0, 9999 },
|
||||
{ ".001", "%.*s.%.3d", standard_volume_url, 2, 9999 },
|
||||
{ NULL, NULL, NULL, 0, 0 },
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue