IosSafeHttpDataSource: log itag/mime + full URL for 403 diag
Previous 120-char truncation hid which stream (video vs audio) was being opened. Splits the log line into 'itag=N mime=X host=Y' summary + a second 'open url=' line with the full URL so the per-thread interleave is unambiguous in logcat.
This commit is contained in:
parent
0964de4c2d
commit
a7b058031b
1 changed files with 6 additions and 1 deletions
|
|
@ -60,12 +60,17 @@ class IosSafeHttpDataSource(
|
|||
// come out as `bytes=N-M` (closed, accepted by googlevideo iOS URLs)
|
||||
// instead of `bytes=N-` (open, rejected with 403).
|
||||
val bounded = dataSpec.buildUpon().setLength(requestLen).build()
|
||||
// Surface itag + mime from query so we can tell video vs audio apart in logs.
|
||||
val u = dataSpec.uri
|
||||
val itag = u.getQueryParameter("itag")
|
||||
val mime = u.getQueryParameter("mime")
|
||||
Log.i(
|
||||
TAG,
|
||||
"open: pos=${bounded.position} len=${bounded.length} " +
|
||||
"(origLen=${dataSpec.length}, chunkBytes=$chunkBytes) " +
|
||||
"url=${dataSpec.uri.toString().take(120)}",
|
||||
"itag=$itag mime=$mime host=${u.host}",
|
||||
)
|
||||
Log.i(TAG, "open url=${u.toString()}")
|
||||
originalSpec = dataSpec
|
||||
totalRead = 0
|
||||
// inner.open() returns the BOUNDED chunk's length. Track it so we
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue