Add Channel column on README Videos table

This commit is contained in:
Rafael Blumberg
2022-09-21 17:54:32 +01:00
committed by Robert Middleswarth
parent 2d6d260938
commit 910657ade4
2 changed files with 8 additions and 3 deletions

View File

@@ -38,6 +38,11 @@ for vid in $(seq 0 $(( nVideos - 1 ))); do
# Get Video ID
ID=$( echo "$info" | jq '.ID' | tr -d '"' )
# Channel Info
ChID=$( echo "$info" | jq '.Channel' )
ChTitle=$( jq ".channels[] | select(.ID==${ChID}) | .Title" "$appinfo" | tr -d '"' )
ChURL=$( jq ".channels[] | select(.ID==${ChID}) | .URL" "$appinfo" | tr -d '"' )
# Get Video URL
URL=$( echo "$info" | jq '.URL' | tr -d '"' )
@@ -52,7 +57,7 @@ for vid in $(seq 0 $(( nVideos - 1 ))); do
unset DocMD
fi
line="|$ID|[$TITLE]($URL)|$DocMD|"
line="|$ID|[$ChTitle]($ChURL)|[$TITLE]($URL)|$DocMD|"
if [ "$vid" == "0" ] ; then
table=$line
else

View File

@@ -61,8 +61,8 @@ You're done! Now just click App Templates and deploy applications!
[![Pi-Hosted Playlist](https://i.ytimg.com/vi/cO2-gQ09Jj0/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAfgdX8HlHas2CddSmgwJzergnTzQ)](https://www.youtube.com/watch?v=cO2-gQ09Jj0&list=PL846hFPMqg3jwkxcScD1xw2bKXrJVvarc)
| | Episode | Additional Information |
|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------|
| | Channel | Episode | Additional Information |
|:---:|:-------:|---------|------------------------|
<<<<< YOUTUBE TABLE HERE >>>>>
### Aditional Documentation