4

Here's a random YouTube video list sorted in chronological order:

https://www.youtube.com/user/numberphile/videos?sort=da&flow=list&view=0

If you click on the PLAY ALL button, however, the order of the playback does not match the chronological ordering of the original list.

Is there a way to play the list back in chronological order?

  • I'm pretty sure that since downloading from YouTube is against their ToS, it's also against this site's ToS. – arieljannai Jul 2 '18 at 21:27
  • @arieljannai: thanks for the pointer; I've modified my question accordingly. – kjo Jul 2 '18 at 23:46
  • Note you're linking to a video list of a user, not to a playlist – arieljannai Jul 5 '18 at 12:41
  • @arieljannai: I've reworded my post; what should I fix next? – kjo Jul 5 '18 at 18:09
  • Looks better - good luck! hope you'll find an answer – arieljannai Jul 5 '18 at 20:06
2

it looks like youtube doesn't support it, but it can be done:

first, you need to get all IDs from that sorted range (I copy/pasted source code into google spreadsheet and filtered it out)

Muc5HQonSEo
sPFWfAxIiwg
umYvFdU54Po
mLQNvuZH3GU
ZfKTD5lvToE
d8TRcZklX_Q
kw6l_uTakRA
fUSZBVYZdKY
4aMtJ-V26Z4
PLL0mo5rHhk
mhJY74Bw8mw
9xbJ3enqLnA
hiOMtBrH8pc
MlyTq-xVkQE
5sKah3pJnHI
IQofiPqhJ_s
bFfSfzjhfC8
kC6YObu61_w
a2ey9a70yY0
8GEebx72-qs
_DpzAvb3Vk4
LzjaDKVC4iY
-O4mYiP2zPQ
DRxAVA6gYMM
daro6K6mym8
D6tINlNluuY
abv4Fz7oNr0
sJVivjuMfWA
yJ-HwrOpIps
wPn4tgmU8ek
QTrM-UVcgBY
U7f8j3mVMbc
UfEiJJGv4CE
XTeJ64KD5cg
DRjFV_DETKQ
UkZqFtYtqaI
CMUI6m8ZMwg
ci3P5jf48cY
RxxDD2LWAyY
R9m2jck1f90
C-52AI_ojyQ
kUBIJdGsD1A
1EGDCh75SpQ
4mEk7d8oRho
yu_aqA7mw7E
MmhNk-zRJcU
8d49sEAU5Ws
oIkhgagvrjI
KbxRDVCVzq4
elvOZm0d4H0
euAHY9hqRN4
mqK63v2Jzks
nBgQPSUTW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U0
4kWuxfVbIaU
fcVjitaM3LY
un-pTKfC1dQ
2BIx2x-Q2fE
A8Tiba3h9Fw
YCXmUi56rao
ZCVAGb1ee8A
G1m7goLCJDY
i3D7XYQExt0
5SfXqTENV_Q
p-xa-3V5KO8
wJGE4aEWc28
Us-__MukH9I
FtNWzlfEQgY
AvFNCNOyZeE
AZRD5UkAm2Y
mthPiiCS24A
3Bv-QMaYlmo
BDEo5XpZcXo
bPZFQ6i759g
aKPkQCys86c
wZ1E_CM7MqA
_pP_C7HEy3g
sj8Sg8qnjOg
7lRgeTmxnlg
1gBwexpG0IY
4445Mbw8pYg
hHG8io5qIU8
FGC5TdIiT9U
6H6EP-AmMFM
DhPtIf-hpuU

then just copy this list and paste it into http://roll.io/

press Run my list! button and you are good to watch

and as for downloading: https://www.youtube.net/channel.php?id


ADDITIONAL DETAILS:

source code in a spreadsheet: https://docs.google.com/spreadsheets/d/

chronologically sorted playlist: http://roll.io/#4U2pNU!0

DOWNLOAD IN CHRONOLOGICAL ORDER:

this will download all video files in chronological order in format 00001-Title.mp4 etc. here are supported options: https://pastebin.com/raw/XGh82hg8 and there are more format options: https://pastebin.com/raw/fgqQbpRC also its possible to feed your desktop media player directly like: youtube-dl.exe -o - -a feed.txt | PotPlayerMini64.exe -

and also there is a possibility to download all IDs with:
youtube-dl.exe --get-id https://www.youtube.com/user/numberphile/ > t.txt
and ditch all that ID scraping from source code (note that then you need to open t.txt file with word/wordpad, because notepad will show it format-less in one string)

PLAY ON YOUTUBE IN CHRONOLOGICAL ORDER:

  • get list of IDs either with youtube-dl.exe or from source code
  • copy/paste it into google spreadsheet and create comma-separated list (ID,ID,ID...)
  • you can use =JOIN(",";A1:A) (as shown in A1)
  • then add the lead to it: ="https://www.youtube.com/watch_videos?video_ids="&A1 (as shown in A4)
  • copy cell A4, paste it into browser's search box and hit ENTER
  • this will create special playlist URL called "Untitled Playlist" where you will have chronologicaly sorted videos
    https://www.youtube.com/watch?v=Muc5HQonSEo&list=TLGGiqkpBaB_k8UwNTA3MjAxOA

SIDE NOTE: unfortunately there is one downside... such playlist is limited only to 50 videos

  • to save such playlist, be sure that you are logged in into youtube
  • add &disable_polymer=true at the end of the URL and hit ENTER
    https://www.youtube.com/watch?v=Muc5HQonSEo&list=TLGGiqkpBaB_k8UwNTA3MjAxOA&disable_polymer=true
  • then, somewhere around Subscribe button will appear + Add to button (or 3-dot/3-slash button with plus sign)
  • select Create a new playlist name it and press Create button
  • done!

there is also API approach, that can maybe handle 50+ videos (but thats not fun):
https://developers.google.com/youtube/v3/docs/playlists/insert#examples
or also AHK (AutoHotKey - https://www.autohotkey.com/ ) script:

;;;Select youtube videos with clipboard to create a playlist. Use CTRL + Y when finished.

;Below allows script to start with clipboard empty
clipboard =   ; Empty the clipboard

;Define playlist string
playlist = http://www.youtube.com/watch_videos?video_ids=

Msgbox Use clipboard to select videos. `nUse CNTL + Y when done selecting videos. `nCNTL + Z exits the script.

#Persistent
OnClipboardChange("ClipChanged")
return

ClipChanged(Type) {
if clipboard contains youtube.com/watch,youtube.com/embed/,youtu.be
    {
    StringRight, clipboard, clipboard, 11   ; Removes all but last 11 characters
    gosub, doit
    return
    } 
 return   
} 

doit:
    count++
    playlist = %playlist%%clipboard%,
    TrayTip, Current Playlist:, %playlist% `nNumber of Videos: %count%`nUse CNTL + Y when done selecting videos ...
    Sleep 2000
    TrayTip  ; Turn off the tip.
    return

^y:: 
;Remove last comma, display playlist, and copy playlist to clipboard
StringTrimRight, playlist2, playlist, 1 ;Replace last comma with blank (also converts the clipboard to plain text).
clipboard = %playlist2%
;Turn off OnClipboardChange
OnClipboardChange("ClipChanged", 0)
Msgbox Number of Videos in playlist: %count% `n%playlist2% `nPlaylist copied to clipboard `n`nUse CNTL + Z to exit ...
;Turn OnClipboardChange on again (necessary to keep Clipboard from aquiring playlist2)
OnClipboardChange("ClipChanged", 1)
return

^z:: 
ExitApp

EXTENSIONS TO EXTRACT URL LINKS:

  • add browser extension: firefox / chrome
  • select area with your mouse from where extension will extract all URL links
  • after selecting area / text with right-click-mouse-drag, click on extension icon and perform desired operation

SPREADSHEET YOUTUBE PLAYLIST GENERATOR:

here I wrote a simple spreadsheet playlist generator: https://docs.google.com/spreadsheets/d/
just add youtube links in any desired order and press that red text in cell B1

  • Sorry, but could you explain how you got all those IDs? The source code I get does not have anywhere near that many, not to mention the fact that the tiny few ones that are present need to be extracted from the mess of surrounding HTML... – kjo Jul 2 '18 at 23:50
  • 1
    @kjo well, I used source code of the last url from my answer after I loaded all sources with that "Load More..." button. then I copied upper div element that contains all sub-divs with IDs. pasted it into sheet. filtered out all rows that contains: vidbox" id=" ...then used find&replace to strip off everything from IDs. next I reversed IDs order and thats pretty much it. – MARK MY ANSWER Jul 3 '18 at 0:44
  • 1
    @kjo added few pictures and sheet. fyi you can use YT source code as well and then filter for: null" href="/watch?v= ...but its less compact eg. it will give you 49800 initial rows instead of 9732 gentube source code rows – MARK MY ANSWER Jul 5 '18 at 13:58
  • 1
    @kjo I see. it would require to add allowFullScreen="allowFullScreen" in every <iframe> to support fullscreen. anyway, I added "how to download in chronological order" part with some pictures – MARK MY ANSWER Jul 5 '18 at 23:45
  • 1
    @kjo haha, last update (maybe) - added "how to play on youtube in chronological order" part, "how to use extensions to extract links from mouse selection" part and also "spreadsheet playlist generator" part – MARK MY ANSWER Jul 6 '18 at 6:23
2

When you hit Play All button from the All Videos page, youtube always plays it in Newest to Oldest sort order. We just want the reverse of it!

Here's this extension - Iridium, that does exactly the same.

Iridium (former YouTube Plus) is an extension built to improve the user experience on the new YouTube Material layout.

Simple Instructions (One Time):

Now you can sort playlist chronologically with this button: enter image description here

  • I'd just like to point out that this extension is not FLOSS, its license is neither libre nor open source. This is a deal breaker for me and I'd recommend against using this extension, in addition to the name being in conflict with a fork of chromium: iridiumbrowser.de. – ZN13 Oct 14 '18 at 11:38

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.