Skip to content

BrusherTheHusky/PlayInHTML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlayInHTML

Takes a Youtube playlist and prettifies it into HTML using Google App Script. Ideal for integrating with Google Sites.

YTPlaylist

Parameters

Once published as a web app, the following parameters are available:

list=abcdef...

The playlist ID to pull data from

  • Expected value: String of playlist ID
  • Default value: UUaN5pdq-IL4TMCusowpEn6w

filter=[public,unlisted]

Choose whether or not to show private/unlisted videos in results

  • Expected value: Array containing some or all of public, unlisted, or private
  • Default value: [public,unlisted]

results=10

Limits the number of results
NOTE: Setting this to a high value or leaving unset will have a large impact on load times

  • Expected value: Whole number (integer)
  • Default value: infinity

aCol=black

Sets the color of link text

  • Expected value: String of HTML Color Name OR rgb(XXX,YYY,ZZZ) value of color
  • Default value: rgb(0,0,238)

bgCol=white

Sets the color of page background

  • Expected value: String of HTML Color Name OR rgb(XXX,YYY,ZZZ) value of color
  • Default value: white

font=Open+Sans

Sets the font of link text

fontSize=12pt

Sets the size of link text

  • Expected value: String of number followed by length unit
  • Default value: 12pt

fontWght=400

Sets the font weight

lineHeight=1.5

Sets the line height

Example URL

https://script.google.com/macros/s/AKf...4EsLU/exec?aCol=rgb(28,28,28)&font=Open+Sans&fontSize=12pt&fontWght=400&lineHeight=1.5&results=50&list=UUaN5pdq-IL4TMCusowpEn6w

About

Takes a Youtube playlist and prettifies it into HTML

Resources

License

Stars

Watchers

Forks