Jump to content

download name "download.mkv"


Recommended Posts

Wundertat
Posted

Almost always when I download via browser, I get offered the real filename but very rarely also only download.mkv

e.g.
Rosario.+.Vampire.S01E11.Neues.Trimester.+.Vampir.x265.1080p.10bit.qAAC.GerJapDub.mkv -> same as real filename
Rosario.+.Vampire.S01E12.Ausschuss.für.öffentliche.Sicherheit.+.Vampir.x265.1080p.10bit.qAAC.GerJapDub.mkv -> get "download.mkv" as download name
Rosario.+.Vampire.S01E13.Tsukune.+.Vampir.x265.1080p.10bit.qAAC.GerJapDub.mkv -> same as real filename

if i change "ö" to "oe" (Rosario.+.Vampire.S01E12.Ausschuss.für.oeffentliche.Sicherheit.+.Vampir.x265.1080p.10bit.qAAC.GerJapDub.mkv) -> get "download.mkv"

emby.log

GrimReaper
Posted
23 minutes ago, Wundertat said:

if i change "ö" to "oe"

How about if you also change "ü" to "u" in the same filename? 

Posted

That's interesting. That's not something we're doing. I think the browser doesn't like the characters in the and so it's doing that.

Wundertat
Posted

Firefox network analyze shows

header 1 with Rosario.+.Vampire.S01E10.Ausschuss.f.mkv

GET /emby/Items/58066/Download?api_key=ec9bc03557da4b3389115f1b8556fc3c&mediaSourceId=208d66c0f8a2b63f46c46ef0b8ce41eb HTTP/1.1
Host: 192.168.1.2:8096
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: de
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Referer: http://192.168.1.2:8096/web/index.html
Cookie: i_like_gitea=357d1818424ec119; lang=de-DE; redirect_to=%2F; JSESSIONID=626B67FD2592A66DE21B31188477478B; connect.sid=s%3A5yz-EU7FbBo05Fo7PO_CilxHcKCJNIQc.nJDli2d1gCrBkuw3GShijnVAwobCJqm4WWxgNxzz1Io; adonis-session=9027ed749205a41bf52ff6f9993e334dxzVUZkLbOmzdyx5%2B3vXimCmlb3sWbDDavIiwlMGFc1eqKxTfxw0UDXQtf0mcj9Jwbd1NtSoTfCtxW9J1reyAD2%2BZYF9xck%2Fb%2BuEsHWKN%2BlHV5G09xZy6fJ4ietOz6KeG; adonis-session-values=7d82308704036789f0001b9ce2587997ZAboCkKjP4putvonlwJF7VtLuuGNO7RDf9RHazN7Q4rmdxXnSggV%2B22XNPfem4sXAo7Vv35varBAhU5yIS9P42HXPF%2BOBWeJf4OY7LmP5kR%2FJDTBogH14UDJqPrPwx%2BwGyflr8SOyXH72LMCctWTBxl1CuWx9neS8zv%2BW8eGZpU%3D
Upgrade-Insecure-Requests: 1
----------------------------------------
HTTP/1.1 200 OK
Content-Length: 574923812
Content-Type: video/x-matroska
Date: Mon, 24 Apr 2023 17:04:08 GMT
Server: UPnP/1.0 DLNADOC/1.50
Accept-Ranges: bytes
Access-Control-Allow-Headers: Accept, Accept-Language, Authorization, Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Length, Content-MD5, Content-Range, Content-Type, Date, Host, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, Origin, OriginToken, Pragma, Range, Slug, Transfer-Encoding, Want-Digest, X-MediaBrowser-Token, X-Emby-Token, X-Emby-Client, X-Emby-Client-Version, X-Emby-Device-Id, X-Emby-Device-Name, X-Emby-Authorization
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS
Access-Control-Allow-Origin: *
Cache-Control: public
ETag: "7639f9230a7bd3b126294c73ae9d42d9"
Access-Control-Allow-Private-Network: true
Content-Disposition: attachment; filename="Rosario.+.Vampire.S01E10.Ausschuss.f.mkv"

 

header 2 with Rosario.+.Vampire.S01E11.Ausschuss.für.oeffentliche.Sicherheit.+.Vampir.x265.1080p.10bit.qAAC.GerJapDub.mkv

GET /emby/Items/58062/Download?api_key=ec9bc03557da4b3389115f1b8556fc3c&mediaSourceId=d1e9f29921c5726c23b88905c8edb98d HTTP/1.1
Host: 192.168.1.2:8096
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: de
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Referer: http://192.168.1.2:8096/web/index.html
Cookie: i_like_gitea=357d1818424ec119; lang=de-DE; redirect_to=%2F; JSESSIONID=626B67FD2592A66DE21B31188477478B; connect.sid=s%3A5yz-EU7FbBo05Fo7PO_CilxHcKCJNIQc.nJDli2d1gCrBkuw3GShijnVAwobCJqm4WWxgNxzz1Io; adonis-session=9027ed749205a41bf52ff6f9993e334dxzVUZkLbOmzdyx5%2B3vXimCmlb3sWbDDavIiwlMGFc1eqKxTfxw0UDXQtf0mcj9Jwbd1NtSoTfCtxW9J1reyAD2%2BZYF9xck%2Fb%2BuEsHWKN%2BlHV5G09xZy6fJ4ietOz6KeG; adonis-session-values=7d82308704036789f0001b9ce2587997ZAboCkKjP4putvonlwJF7VtLuuGNO7RDf9RHazN7Q4rmdxXnSggV%2B22XNPfem4sXAo7Vv35varBAhU5yIS9P42HXPF%2BOBWeJf4OY7LmP5kR%2FJDTBogH14UDJqPrPwx%2BwGyflr8SOyXH72LMCctWTBxl1CuWx9neS8zv%2BW8eGZpU%3D
Upgrade-Insecure-Requests: 1
-------------------------------------
HTTP/1.1 200 OK
Content-Length: 574923812
Content-Type: video/x-matroska
Date: Mon, 24 Apr 2023 17:05:42 GMT
Server: UPnP/1.0 DLNADOC/1.50
Accept-Ranges: bytes
Access-Control-Allow-Headers: Accept, Accept-Language, Authorization, Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Length, Content-MD5, Content-Range, Content-Type, Date, Host, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, Origin, OriginToken, Pragma, Range, Slug, Transfer-Encoding, Want-Digest, X-MediaBrowser-Token, X-Emby-Token, X-Emby-Client, X-Emby-Client-Version, X-Emby-Device-Id, X-Emby-Device-Name, X-Emby-Authorization
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS
Access-Control-Allow-Origin: *
Cache-Control: public
ETag: "ccfb604e5011def10fb69536bf1175b3"
Access-Control-Allow-Private-Network: true

 

im not a expert but it looks for me that Firefox and maybe Safari too missing tag Content-Disposition: attachment; filename=""

Posted

It's always there. It's probably just not showing it because it couldn't parse it due to the presence of some character that we'll have to either strip out or encode.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...