Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small cleanup after the YouTube.js update #5520

Merged
merged 1 commit into from
Aug 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -994,12 +994,6 @@ function runApp() {
try {
const contents = await asyncFs.readFile(filePath)

// Probably a corrupted/broken cache entry, pretend it's absent
// A valid entry should be a few KB large
if (contents.byteLength < 500) {
return undefined
}

return contents.buffer
} catch (e) {
console.error(e)
Expand Down
4 changes: 0 additions & 4 deletions src/renderer/helpers/api/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,8 @@ async function createInnertube({ withPlayer = false, location = undefined, safet
const client = bodyJson.context.client

client.clientVersion = clientVersion
client.deviceMake = 'Apple'
client.deviceModel = 'iPhone16,2' // iPhone 15 Pro Max
client.osName = 'iOS'
client.osVersion = iosVersion
delete client.browserName
delete client.browserVersion

init.body = JSON.stringify(bodyJson)
}
Expand Down