# output 20 rows of videos in random order to new file - this is an attempt to get around # create single list of all videos in specific folders (array not supported)Įcho "$(date)|INFO|Processing directory: $1" > "$LOGFILE"įind -L "$1" -type f \( -iname "*.*" ! -iname "*.srt" ! -iname "*.jpg" ! -iname "*.nfo" ! -iname "*.tbn" ! -iname "*.png" \) > $OUTFILE0 SCRIPT=`basename "$0"` # get name of this script LOCKFILE="/storage/temp/make-foodtravel-m3u_v1.lock" LOGFILE="/storage/temp/make-foodtravel-m3u_v1.log" OUTFILE2="/storage/temp/foodtravel-random.txt" OUTFILE1="/storage/temp/foodtravel-listing.txt" PLAYLIST="/storage/.kodi/userdata/playlists/video/Food and Travel.m3u" # Nor does it appear to support arrays! ugh! # NOTE: Librelec does not support GNU sort or GNU shuf commands # NOTE: THIS IS MEANT TO RUN FROM THE KODI DEVICE. Home and Garden, Science and Nature, Night Flight, and MTV. I have several: Documentaries, Food and Travel, History. m3u playlist to mimic a Food Network / Travel Channel experience. Here's one that runs on the Raspberry Pi. #scp $OUTFILE $OUTFILE $(date) "Finished running script. # copy new playlist to XBMC - /storage/.kodi/userdata/playlists/videoĮcho $(date) "Copying playlist to XBMC2" > $LOGFILE # get just filename from file list and prepend player's local pathĮcho $(date) "Adding music video $a" > $LOGFILE # get multiple random lines from file list # output multiple rows of random videos to file # append new line with new path to playlist PLAYLIST="/storage/.kodi/userdata/playlists/video/MusicVideos.m3u"Įcho $(date) "Start building playlist: $PLAYLIST" > $LOGFILEĮcho $(date) "Deleting old playlist temp file: $OUTFILE" > $LOGFILEĮcho $(date) "Adding bumper $a" > $LOGFILE LOCALPATH="/var/media/USB128/Music Videos" LOGFILE="/mnt/user/Media/admin/makem3u.log" VIDEOS="/mnt/user/Media/admin/mtv_videos.txt" VIDEOLIMIT=3 # number of videos to play between bumpersīUMPERS="/mnt/user/Media/admin/mtv_bumpers.txt" # change internal field separator to newline only to allow spaces in nameįILELIMIT=80 # number of loops (see Note above) # Too many entries in playlist will load slower in XBMC. # (80 * 3 + 80 for the bumpers = 320 total videos including bumpers) # For example, 80 loops with 3 videos between bumpers = 320 # is determined by the FILELIMIT * VIDEOLIMIT + FILELIMIT. # Note: The number of lines added to the playlist (number of videos played) # NOTE: Run chmod 777 on script after saving! # NOTE: THIS IS MEANT TO RUN FROM THE NAS. For example, this script creates a playlist and puts it on my Kodi box. I use m3u because I always play the videos randomly (party mode doesn't accept normal files)ĮDIT: Thanks to jchaven he suggested a practical scenario for my caseĬreate smaller playlists. VLC works fine under TV Box (it handles my m3u smoothly) but my kids hate it.Ģ. Kodi on the TV Box frequently crashes when I try to play this big m3u (~6MB and 61K entry) while it work perfectly on PC (I think Kodi loads all the playlist into the memory before playing the playlist which TV Box can't handle it)ĭo you suggest a better scenario for my case?ġ. I play this m3u using Kodi on my Xiaomi Mi Box S TV Box and my Linux PC. For that I created a m3u playlist hosted on HTTP server contains on all these videos. Some of the videos are saved from YouTube while others not available in IMDB (movies and shows) or any similar service so I play them as a files. I've a huge media library hosted on my cloud. For discussion of those add-ons, feel free to visit /r/Addons4Kodi. Any such links or discussion will be removed. This subreddit does not support discussion or links pertaining to gray area or illegal add-ons (such as genesis or icefilms) for Kodi made by 3rd party developers. Pick the Right Kodi Box (updated March2019).Kodi can be used to play almost all popular audio and video formats around. It uses a 10-foot user interface and is designed to be a media player for the living-room, using a remote control as the primary input device. Kodi is an award-winning free and open source cross-platform software media player and entertainment hub for HTPCs.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |