~cadence/tube#2: 
Error: Cannot read property 'second__width' of undefined

When trying to watch some videos, such as this one[1], I get taken to an error page with a traceback:

TypeError: pug/video.pug:23 21| .video-container 22| - const format = sortedFormatStreams[0]

23| video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag)#video.video 24| source(src=format.url type=format.type) 25| 26| #current-time-container

Cannot read property 'second__width' of undefined at Object.eval (eval at wrap (/home/cloud/Code/cloudtube/node_modules/pug-runtime/wrap.js:6:10), :157:143) at Object.template [as web] (eval at wrap (/home/cloud/Code/cloudtube/node_modules/pug-runtime/wrap.js:6:10), :323:7) at render (/home/cloud/Code/cloudtube/node_modules/pinski/plugins.js:14:47) at Object.code (/home/cloud/Code/cloudtube/api/video.js:26:12) at process.internalTickCallback (internal/process/next_tick.js:77:7)

[1] https://tube.cadence.moe/watch?v=jsePdarfEYU

Status
RESOLVED FIXED
Submitter
~chaosmonk
Assigned to
No-one
Submitted
8 months ago
Updated
8 months ago
Labels
cloudtube problem

~cadence 8 months ago

Thanks for the report. The video you linked now works, but I think I know how to solve the problem in future.

~cadence REPORTED FIXED 8 months ago

Fixed in 247f2ec. At the time of writing, you can see this fix by visiting https://tube.cadence.moe/watch?v=mYpf0rKwhXA with https://invidio.us as the selected instance in settings.

Register here or Log in to comment, or comment via email.