Skip to content

Commit

Permalink
Remove youtube_regex for filename
Browse files Browse the repository at this point in the history
I assume that every stream has a better media-title than filename
  • Loading branch information
m-braunschweig committed Mar 9, 2022
1 parent b7193c4 commit d9f1998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/encode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function start_encoding(from, to, settings)
end
local input_name = mp.get_property("filename/no-ext") or "encode"

if is_stream and string.match(mp.get_property("stream-path"), youtube_regex) then
if is_stream then
input_name = sanitize_filename(mp.get_property("media-title"))
end

Expand Down

0 comments on commit d9f1998

Please sign in to comment.