Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chrishulbert/gondola
/ functions
Functions
77 in github.com/chrishulbert/gondola
⨍
Functions
77
◇
Types & classes
25
↓ 27 callers
Function
chop
(str string, start string, end string)
tvdb.go:20
↓ 7 callers
Function
unescapeTrim
(str string)
tvdb.go:105
↓ 6 callers
Function
runCommand
It calls log.Fatal if the command fails or returns a non-zero exit code.
DvdUtils/ocr_subs.go:202
↓ 4 callers
Function
directoriesIn
List of full directories (eg path + name).
metadata.go:174
↓ 4 callers
Function
ffmpeg
Runs FFMPEG, nicely, returning the stdout/stderr and any error.
transcode.go:303
↓ 4 callers
Function
generateMetadata
Generates metadata for everything.
metadata.go:62
↓ 4 callers
Function
get
(url string)
tvdb.go:59
↓ 4 callers
Function
getTVImageIfNeeded
(image string, folder string, filename string)
helpers.go:41
↓ 4 callers
Function
readAndUnmarshal
(folder string, file string, v interface{})
metadata.go:186
↓ 4 callers
Function
runCommand
It calls log.Fatal if the command fails or returns a non-zero exit code.
DvdUtils/select_subs.go:116
↓ 3 callers
Function
sanitiseForFilesystem
Sanitises to make a filesystem-safe name.
helpers.go:13
↓ 2 callers
Function
convertToHLSAppropriately
Tries to convert the given video to hls.
transcode.go:23
↓ 2 callers
Function
expandTilde
(path string)
config.go:39
↓ 2 callers
Function
getMovieImageIfNeeded
(image string, size string, folder string, filename string)
helpers.go:26
↓ 2 callers
Function
rip
(show, season, disk, episode, title, name)
DvdUtils/backup.rb:6
↓ 2 callers
Function
scanNewPath
(whichPath string, isMovies bool, paths Paths, config Config)
gondola.go:40
↓ 2 callers
Function
scanNewPaths
Scans the new paths, looking for any media files we're interested in.
gondola.go:35
↓ 2 callers
Function
stringFromTime
(time float64)
DvdUtils/ocr_subs.go:170
↓ 2 callers
Function
tmdbDownload
Downloads contents of a url.
tmdb.go:25
↓ 2 callers
Function
tvSeasonFolderNameFor
(season int)
tv.go:189
↓ 2 callers
Function
tvdbSearchForSeries
Returns the show url slug / id. "" if can't find. eg 'i-dream-of-jeannie'.
tvdb.go:75
↓ 2 callers
Function
tvdbSeasonDetails
Get the episodes in a season.
tvdb.go:229
↓ 2 callers
Function
tvdbSeriesDetails
(id string)
tvdb.go:151
↓ 1 callers
Function
audioStreamFromFile
Find `AudioStreamX` in a file and returns X. Or nil if it can't find. 0 is a valid stream number.
title.go:49
↓ 1 callers
Method
audioStreams
()
probe.go:114
↓ 1 callers
Function
canGetExclusiveAccessToFile
Can the given file be accessed exclusively eg no other process is still writing to it? The os.OpenFile trick didn't work IME when someone's SCP'ing a
exclusive.go:18
↓ 1 callers
Function
capacity
Figure out how much disk space is left.
metadata.go:367
↓ 1 callers
Function
episodesForSeasonDetails
Extracts the episodes from the season screen.
tvdb.go:197
↓ 1 callers
Function
execLog
Executes, logging lines as they come in, returning all stdin/err output.
exec_log.go:28
↓ 1 callers
Function
exists
(path string)
gondola.go:95
↓ 1 callers
Function
generateRootHTML
Generates the root index.html
metadata.go:254
↓ 1 callers
Function
generateSeasonHTML
Generate a season's html (which is the list of episodes in it).
metadata.go:214
↓ 1 callers
Function
generateShowHTML
Generate a show's html (which is the list of seasons in it).
metadata.go:327
↓ 1 callers
Function
getStreams
(filename string)
DvdUtils/ocr_subs.go:152
↓ 1 callers
Function
getStreams
(filename string)
DvdUtils/select_subs.go:97
↓ 1 callers
Method
hasSubtitles
()
probe.go:134
↓ 1 callers
Function
isIncompatiblePixelFormat
(pf string)
transcode.go:213
↓ 1 callers
Function
isValidExtension
Returns true if it's an extension we're interested in.
gondola.go:23
↓ 1 callers
Function
loadConfig
()
config.go:16
↓ 1 callers
Function
loadMetadata
(folder string)
DvdUtils/ocr_subs.go:221
↓ 1 callers
Function
ocr
(folder string, file string)
DvdUtils/ocr_subs.go:242
↓ 1 callers
Function
probe
Probes a media file
probe.go:101
↓ 1 callers
Function
processMovie
Actually processses a file that's in the new folder.
movies.go:14
↓ 1 callers
Function
processTV
Actually processes a file that's in the new folder.
tv.go:17
↓ 1 callers
Function
processVob
(filename string)
DvdUtils/ocr_subs.go:44
↓ 1 callers
Function
processVob
(filename string)
DvdUtils/select_subs.go:43
↓ 1 callers
Function
requestTmdbMovieSearch
Finds the movie id. If year is given, it includes that in the criteria.
tmdb_movie_search.go:27
↓ 1 callers
Function
runConvertToHLS
Converts to HLS. If it gets back an error about h264_mp4toannexb, it retries with the appropriate command. frameRate is as per the probe eg "24000/100
transcode.go:222
↓ 1 callers
Function
searchUrl
(name string)
tvdb.go:51
↓ 1 callers
Function
seasonsForResponse
Finds all the seasons in an html for a tv series details page.
tvdb.go:131
↓ 1 callers
Function
showSeasonEpisodeFromFile
(file string)
title.go:34
↓ 1 callers
Function
streamNumber
-1 if missing.
DvdUtils/ocr_subs.go:182
↓ 1 callers
Function
titleAndYearFromFilename
Expects eg 'Big.Buck.Bunny.2008.blahblah.vob' Nice-ify the title for a filename. Best case, becomes "Some movie", 2016. If it cannot find year, return
title.go:14
↓ 1 callers
Function
tmdbDownloadImage
Size options are: "base_url": "http://image.tmdb.org/t/p/", "secure_base_url": "https://image.tmdb.org/t/p/", "backdrop_sizes": [ "w300", "w780", "w12
tmdb.go:73
↓ 1 callers
Function
tmdbDownloadParse
(url string, v interface{})
tmdb.go:15
↓ 1 callers
Function
tryProcess
Tries processing a file. Doesn't worry if it can't, eg if the file is half-copied, as the completion of the copy will trigger another scan.
gondola.go:65
↓ 1 callers
Function
tvEpisodeGuess
From a tv episode eg 'Some TV Show - Episode Name.vob' it looks up tmdb, finds the closest episode name, and renames to eg 'Seinfeld S09E03 The Sereni
tv_episode_guess.go:23
↓ 1 callers
Function
tvFolderNameFor
Makes the folder name for the given show.
tv.go:194
↓ 1 callers
Function
tvdbEpisodeDetails
(seriesId string, seasonId int, seasonNumber int, episodeid int)
tvdb.go:257
↓ 1 callers
Function
vanillaDownload
Downloads contents of a url.
helpers.go:57
↓ 1 callers
Method
videoStreams
()
probe.go:124
↓ 1 callers
Function
vobFiles
()
DvdUtils/ocr_subs.go:24
↓ 1 callers
Function
vobFiles
()
DvdUtils/select_subs.go:23
↓ 1 callers
Function
watch
Returns the channel that'll send you file changes. Folder cannot use ~ Won't include subfolders - linux doesn't allow for this.
watch.go:13
Method
Error
()
transcode.go:18
Method
Len
()
metadata.go:199
Method
Len
()
metadata.go:207
Method
Less
(i, j int)
metadata.go:201
Method
Less
(i, j int)
metadata.go:209
Method
Swap
(i, j int)
metadata.go:200
Method
Swap
(i, j int)
metadata.go:208
Function
chopFirst
Finds the first occurrence of 'start' and return the text after it.
tvdb.go:43
Function
chopLast
Finds the last occurrence of 'start' and return the text after it.
tvdb.go:34
Function
main
()
gondola.go:103
Function
main
()
DvdUtils/ocr_subs.go:18
Function
main
()
DvdUtils/select_subs.go:17
Function
scanCarriageReturns
(data []byte, atEOF bool)
exec_log.go:11