YePpHa / YouTubeCenter

YouTube Center is a userscript designed to expand the functionality of YouTube. It includes the ability to download the video you're watching, auto selecting your preferred video quality and much more.
MIT License
2.89k stars 520 forks source link

video doesn't play #2336

Open pilotrtc opened 7 years ago

pilotrtc commented 7 years ago

I updated to Dev Build 540 and updated to using Firefox 48.0.2 and while all settings seem to be maintained, the video will not play. All I see is a black field where the video should be. I checked the source code on the page and see this:

< div id="player" class="content-alignment watch-medium watch-large" role="complementary">< div id="theater-background" class="player-height">

< div id="player-unavailable" class=" hid player-width player-height player-unavailable "> < img class="icon meh" src="/yts/img/pixel-vfl3z5WfW.gif" data-icon="/yts/img/meh7-vflGevej7.png" alt=""> < div class="content"> < h1 id="unavailable-message" class="message"> This video is unavailable.

</h1>
< div id="unavailable-submessage" class="submessage">
</div>

I played with the Player Size settings but came up with nothing.

Any advice?

Thanks!

ADDITIONAL NOTE (Just in case this might help): I am using an outdated Flash plug-in (I "allow" when I feel like it) but I selected "HTML5" as my playback preference so that "allow" button doesn't show up.

pilotrtc commented 7 years ago

I should probably add that I'm using the UserScript with GreaseMonkey in Firefox 48.0.2.

herki84 commented 7 years ago

Just adding that I'm experiencing the same problem with Palemoon 25.6 and Scriptish.

AlphaDelta commented 7 years ago

Same problem affecting Palemoon 27.0.3 (x64). Script (542, developer build) is installed on Greasemonkey 1.15.1 (also tested on v3.3).

herki84 commented 7 years ago

Just a follow-up, if it's any help - this is the console log I get when trying to open a video (v548):


[13:37:02.284] "[Storage] Checking if settings have expired."
[13:37:02.285] "[Storage] Checking if settings have expired."
[13:37:02.437] "[Storage] Saving Settings"
[13:37:02.714] GET https://www.youtube.com/watch?v=imXk8u-reUQ [HTTP/1.1 200 OK 592ms]
[13:37:04.461] "[YouTubeCenter]" "Domain registered www.youtube.com."
[13:37:04.462] "[YouTubeCenter]" "default"
[13:37:08.119] Use of getUserData() or setUserData() is deprecated.  Use WeakMap or element.dataset instead. @ resource://...
[13:37:08.745] "[Property Wrapper] Wrapping the function undefined into a function wrapper."
[13:37:08.746] "[Property Wrapper] Property doesn't exists in parent, attaching trigger using `getter and setter`."
[13:37:09.328] "[PageReadinessListener] At event => headerInitialized" "watch"
[13:37:09.331] "Language set to en-US because it could not be auto-detected yet"
[13:37:13.993] "[Property Wrapper] Property doesn't exists in parent, attaching trigger using `getter and setter`."
[13:37:14.000] "[Property Wrapper] Wrapping `create` function in a wrapper."
[13:37:14.109] "[PageReadinessListener] At event => bodyInitialized" "watch"
[13:37:14.120] "Adding player shortcuts to document"
[13:37:16.348] GET https://r6---sn-4g5e6n7r.googlevideo.com/crossdomain.xml [HTTP/1.1 200 OK 237ms]
[13:37:16.350] GET https://r6---sn-4g5e6n7r.googlevideo.com/generate_204 [HTTP/1.1 204 No Content 235ms]
[13:37:14.626] "[External] Setting player configruation."
[13:37:14.628] "[Player modifyConfig] => watch"
[13:37:14.632] "[Player:setPlayerType] Requesting player type change to html5"
[13:37:14.632] "[Player:setPlayerType] Setting player type from null to html5"
[13:37:14.633] "[Player Type] HTML5"
[13:37:14.664] [object Error]
[13:37:14.665] InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable @ https://www.youtube.com/watch?v=imXk8u-reUQ:11968
[13:37:16.380] "[SPF] ready" null
[13:37:16.666] "[PageReadinessListener] At event => bodyInteractive" "watch"
[13:37:16.720] "[Thumbnail] Setup has begun..."
[13:37:16.721] "[Storage] Checking if settings have expired."
[13:37:16.779] "[VideoThumbnail Quality] IO Error => Connection failed!"
[13:37:16.781] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.782] [object Error]
[13:37:16.783] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.783] [object Error]
[13:37:16.784] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.784] [object Error]
[13:37:16.785] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.785] [object Error]
[13:37:16.786] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.786] [object Error]
[13:37:16.787] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.787] [object Error]
[13:37:16.788] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.788] [object Error]
[13:37:16.788] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.789] [object Error]
[13:37:16.790] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.790] [object Error]
[13:37:16.790] "[Id=undefined] Likes: undefined, undefined"
[13:37:16.790] [object Error]
[13:37:16.791] [object XPCWrappedNative_NoHelper]
[13:37:16.849] "[Worker] Addiong new job (UCvp5-Ip05dWVdaJpFZF01VQ)"
[13:37:16.849] "[Worker] Executing new job (UCvp5-Ip05dWVdaJpFZF01VQ)"
[13:37:16.871] [object Error]
[13:37:16.871] "[Worker] Job completed (UCvp5-Ip05dWVdaJpFZF01VQ)"
[13:37:16.975] "[Title Listener] "" => "Too Fast To Race""
[13:37:16.907] TypeError: response is undefined @ https://www.youtube.com/watch?v=imXk8u-reUQ:19950
[13:37:17.216] "[Storage] Saving Settings"
[13:37:17.506] "[Tab Events] Sending new settings to other open tabs."
[13:37:19.458] "[PageReadinessListener] At event => bodyComplete" "watch"
[13:37:19.497] "[Guide] Configurating the state updater!"
[13:37:19.525] "[PageReadinessListener] Stopping interval"
[13:37:21.838] "[External] Setting player configruation."
[13:37:21.839] "[Player modifyConfig] => watch"
[13:37:21.840] "[Player:setPlayerType] Requesting player type change to html5"
[13:37:21.840] "[Player:setPlayerType] Setting player type from null to html5"
[13:37:21.841] "[Player Type] HTML5"
[13:37:21.844] [object Error]
[13:37:19.808] "[YouTubeCenter]" "Domain registered www.youtube.com."
[13:37:19.850] "[YouTubeCenter]" "default"
[13:37:21.668] "[Storage] Checking if settings have expired."
[13:37:22.619] "[Storage] Saving Settings"
[13:37:22.820] "[PageReadinessListener] At event => headerInitialized" "watch"
[13:37:22.822] "Language set to en-US because it could not be auto-detected yet"
[13:37:24.253] "[Tab Events] Sending new settings to other open tabs."
[13:37:25.132] "[Tab Events] Received updated settings from another tab."
[13:37:26.717] GET https://www.youtube.com/feed_ajax?action_get_unseen_notification_count=1 [HTTP/1.1 200 OK 281ms]
[13:37:26.912] GET https://i.ytimg.com/vi/yPN6_e2xVBI/hqdefault.jpg?custom=true&w=168&h=94&stc=true&jpg444=true&jpgq=90&sp=68&sigh=P8nDdOWHFuZOTlyF3mGJhTdSn1k [HTTP/1.1 200 OK 71ms]
[13:37:29.515] POST https://www.youtube.com/watch_fragments_ajax?v=imXk8u-reUQ&tr=time&frags=guide [HTTP/1.1 200 OK 202ms]
--
[13:37:39.551] Use of getUserData() or setUserData() is deprecated.  Use WeakMap or element.dataset instead. @ resource://...
[13:37:40.785] POST https://clients6.google.com/youtubei/v1/log_interaction?alt=json&key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8 [HTTP/1.1 200 OK 128ms]
--
[13:38:13.765] "YouTube configuration data is inaccessible; giving up on language auto-detection."                                            ```