src/streammap.js
// Map containers to the order they sort in
Map containers to the order they sort in
Map containers to the order they sort in
function containerToNum(container)
	{
		if (String(localStorage["ytd-prefer-webm"]) == "true")
			return {
				"WebM": 1,
				"MP4": 2,
				"FLV": 3,
				"3GPP": 4,
			}[container] || 5;
		else
			return {
				"MP4": 1,
				"FLV": 2,
				"WebM": 3,
				"3GPP": 4,
			}[container] || 5;
	}
function containerToNum ( container ) { if ( String ( localStorage [ "ytd-prefer-webm" ] ) == "true" ) return { "WebM" : 1 , "MP4" : 2 , "FLV" : 3 , "3GPP" : 4 , } [ container ] || 5 ; else return { "MP4" : 1 , "FLV" : 2 , "WebM" : 3 , "3GPP" : 4 , } [ container ] || 5 ; }
Map containers to the order they sort in
Map containers to the order they sort in