MCPcopy Create free account

hub / github.com/chrishulbert/gondola / functions

Functions77 in github.com/chrishulbert/gondola

↓ 27 callersFunctionchop
(str string, start string, end string)
tvdb.go:20
↓ 7 callersFunctionunescapeTrim
(str string)
tvdb.go:105
↓ 6 callersFunctionrunCommand
It calls log.Fatal if the command fails or returns a non-zero exit code.
DvdUtils/ocr_subs.go:202
↓ 4 callersFunctiondirectoriesIn
List of full directories (eg path + name).
metadata.go:174
↓ 4 callersFunctionffmpeg
Runs FFMPEG, nicely, returning the stdout/stderr and any error.
transcode.go:303
↓ 4 callersFunctiongenerateMetadata
Generates metadata for everything.
metadata.go:62
↓ 4 callersFunctionget
(url string)
tvdb.go:59
↓ 4 callersFunctiongetTVImageIfNeeded
(image string, folder string, filename string)
helpers.go:41
↓ 4 callersFunctionreadAndUnmarshal
(folder string, file string, v interface{})
metadata.go:186
↓ 4 callersFunctionrunCommand
It calls log.Fatal if the command fails or returns a non-zero exit code.
DvdUtils/select_subs.go:116
↓ 3 callersFunctionsanitiseForFilesystem
Sanitises to make a filesystem-safe name.
helpers.go:13
↓ 2 callersFunctionconvertToHLSAppropriately
Tries to convert the given video to hls.
transcode.go:23
↓ 2 callersFunctionexpandTilde
(path string)
config.go:39
↓ 2 callersFunctiongetMovieImageIfNeeded
(image string, size string, folder string, filename string)
helpers.go:26
↓ 2 callersFunctionrip
(show, season, disk, episode, title, name)
DvdUtils/backup.rb:6
↓ 2 callersFunctionscanNewPath
(whichPath string, isMovies bool, paths Paths, config Config)
gondola.go:40
↓ 2 callersFunctionscanNewPaths
Scans the new paths, looking for any media files we're interested in.
gondola.go:35
↓ 2 callersFunctionstringFromTime
(time float64)
DvdUtils/ocr_subs.go:170
↓ 2 callersFunctiontmdbDownload
Downloads contents of a url.
tmdb.go:25
↓ 2 callersFunctiontvSeasonFolderNameFor
(season int)
tv.go:189
↓ 2 callersFunctiontvdbSearchForSeries
Returns the show url slug / id. "" if can't find. eg 'i-dream-of-jeannie'.
tvdb.go:75
↓ 2 callersFunctiontvdbSeasonDetails
Get the episodes in a season.
tvdb.go:229
↓ 2 callersFunctiontvdbSeriesDetails
(id string)
tvdb.go:151
↓ 1 callersFunctionaudioStreamFromFile
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 callersMethodaudioStreams
()
probe.go:114
↓ 1 callersFunctioncanGetExclusiveAccessToFile
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 callersFunctioncapacity
Figure out how much disk space is left.
metadata.go:367
↓ 1 callersFunctionepisodesForSeasonDetails
Extracts the episodes from the season screen.
tvdb.go:197
↓ 1 callersFunctionexecLog
Executes, logging lines as they come in, returning all stdin/err output.
exec_log.go:28
↓ 1 callersFunctionexists
(path string)
gondola.go:95
↓ 1 callersFunctiongenerateRootHTML
Generates the root index.html
metadata.go:254
↓ 1 callersFunctiongenerateSeasonHTML
Generate a season's html (which is the list of episodes in it).
metadata.go:214
↓ 1 callersFunctiongenerateShowHTML
Generate a show's html (which is the list of seasons in it).
metadata.go:327
↓ 1 callersFunctiongetStreams
(filename string)
DvdUtils/ocr_subs.go:152
↓ 1 callersFunctiongetStreams
(filename string)
DvdUtils/select_subs.go:97
↓ 1 callersMethodhasSubtitles
()
probe.go:134
↓ 1 callersFunctionisIncompatiblePixelFormat
(pf string)
transcode.go:213
↓ 1 callersFunctionisValidExtension
Returns true if it's an extension we're interested in.
gondola.go:23
↓ 1 callersFunctionloadConfig
()
config.go:16
↓ 1 callersFunctionloadMetadata
(folder string)
DvdUtils/ocr_subs.go:221
↓ 1 callersFunctionocr
(folder string, file string)
DvdUtils/ocr_subs.go:242
↓ 1 callersFunctionprobe
Probes a media file
probe.go:101
↓ 1 callersFunctionprocessMovie
Actually processses a file that's in the new folder.
movies.go:14
↓ 1 callersFunctionprocessTV
Actually processes a file that's in the new folder.
tv.go:17
↓ 1 callersFunctionprocessVob
(filename string)
DvdUtils/ocr_subs.go:44
↓ 1 callersFunctionprocessVob
(filename string)
DvdUtils/select_subs.go:43
↓ 1 callersFunctionrequestTmdbMovieSearch
Finds the movie id. If year is given, it includes that in the criteria.
tmdb_movie_search.go:27
↓ 1 callersFunctionrunConvertToHLS
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 callersFunctionsearchUrl
(name string)
tvdb.go:51
↓ 1 callersFunctionseasonsForResponse
Finds all the seasons in an html for a tv series details page.
tvdb.go:131
↓ 1 callersFunctionshowSeasonEpisodeFromFile
(file string)
title.go:34
↓ 1 callersFunctionstreamNumber
-1 if missing.
DvdUtils/ocr_subs.go:182
↓ 1 callersFunctiontitleAndYearFromFilename
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 callersFunctiontmdbDownloadImage
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 callersFunctiontmdbDownloadParse
(url string, v interface{})
tmdb.go:15
↓ 1 callersFunctiontryProcess
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 callersFunctiontvEpisodeGuess
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 callersFunctiontvFolderNameFor
Makes the folder name for the given show.
tv.go:194
↓ 1 callersFunctiontvdbEpisodeDetails
(seriesId string, seasonId int, seasonNumber int, episodeid int)
tvdb.go:257
↓ 1 callersFunctionvanillaDownload
Downloads contents of a url.
helpers.go:57
↓ 1 callersMethodvideoStreams
()
probe.go:124
↓ 1 callersFunctionvobFiles
()
DvdUtils/ocr_subs.go:24
↓ 1 callersFunctionvobFiles
()
DvdUtils/select_subs.go:23
↓ 1 callersFunctionwatch
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
MethodError
()
transcode.go:18
MethodLen
()
metadata.go:199
MethodLen
()
metadata.go:207
MethodLess
(i, j int)
metadata.go:201
MethodLess
(i, j int)
metadata.go:209
MethodSwap
(i, j int)
metadata.go:200
MethodSwap
(i, j int)
metadata.go:208
FunctionchopFirst
Finds the first occurrence of 'start' and return the text after it.
tvdb.go:43
FunctionchopLast
Finds the last occurrence of 'start' and return the text after it.
tvdb.go:34
Functionmain
()
gondola.go:103
Functionmain
()
DvdUtils/ocr_subs.go:18
Functionmain
()
DvdUtils/select_subs.go:17
FunctionscanCarriageReturns
(data []byte, atEOF bool)
exec_log.go:11