diff --git a/strawApp/src/main/kotlin/com/sulkta/straw/net/IosSafeHttpDataSource.kt b/strawApp/src/main/kotlin/com/sulkta/straw/net/IosSafeHttpDataSource.kt index 7a81709b0..4e9eb7583 100644 --- a/strawApp/src/main/kotlin/com/sulkta/straw/net/IosSafeHttpDataSource.kt +++ b/strawApp/src/main/kotlin/com/sulkta/straw/net/IosSafeHttpDataSource.kt @@ -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