Skip to content

Commit

Permalink
Merge pull request #168 from eschizoid/bugfix/download-directory
Browse files Browse the repository at this point in the history
Fixed download location
  • Loading branch information
eschizoid authored Jan 20, 2019
2 parents 8a7d067 + 3340b00 commit f9d43f1
Show file tree
Hide file tree
Showing 12 changed files with 141 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 45 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,19 @@ make deploy-lambdas
$ flixctl --help
To Control The Following flixctl Components:
* Library
* NZB Client
* Ombi
* Plex
* Torrent
* Torrent Client
Usage:
flixctl [command]
Available Commands:
help Help about any command
library To Control Media Library
nzb To Control Nzb Client
ombi To Control Ombi
plex To Control Plex Media Center
torrent To Control Torrent Client
version To Get flixctl Version
Expand Down Expand Up @@ -191,6 +195,38 @@ Flags:
Use "flixctl torrent [command] --help" for more information about a command.
----
==== ```flixctl ombi```
----
$ flixctl ombi --help
To Control Ombi
Usage:
flixctl ombi [command]
Available Commands:
request To Request Movies or Shows
Flags:
-h, --help help for ombi
Use "flixctl ombi [command] --help" for more information about a command.
----
==== ```flixctl nzb```
----
$ flixctl nzb --help
To Control Nzb Client
Usage:
flixctl nzb [command]
Available Commands:
status To Show Nzb Status
Flags:
-h, --help help for nzb
Use "flixctl nzb [command] --help" for more information about a command.
----

=== Examples
==== ```flixctl```
Expand Down Expand Up @@ -274,3 +310,11 @@ $ flixctl library upload \
--enable-batch-mode "false" \
--source-file "/plex/movies/trainspoting/Trainspoting.mkv"
----
==== ```flixctl ombi```
----
$ flixctl ombi --help
----
==== ```flixctl nzb```
----
$ flixctl nzb --help
----
19 changes: 19 additions & 0 deletions cmd/nzb/root.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package nzb

import (
"github.com/spf13/cobra"
)

var (
RootNzbCmd = &cobra.Command{
Use: "nzb",
Short: "To Control Nzb Client",
}
)

var (
_ = func() struct{} {
RootNzbCmd.AddCommand(StatusNzbCmd)
return struct{}{}
}()
)
13 changes: 13 additions & 0 deletions cmd/nzb/status.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package nzb

import (
"github.com/spf13/cobra"
)

var StatusNzbCmd = &cobra.Command{
Use: "status",
Short: "To Show Nzb Status",
Long: "to show the status of the nzb files being downloaded.",
Run: func(cmd *cobra.Command, args []string) {
},
}
13 changes: 13 additions & 0 deletions cmd/ombi/request.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package ombi

import (
"github.com/spf13/cobra"
)

var RequestOmbiCmd = &cobra.Command{
Use: "request",
Short: "To Request Movies or Shows",
Long: "to request movies or shows via ombi.",
Run: func(cmd *cobra.Command, args []string) {
},
}
19 changes: 19 additions & 0 deletions cmd/ombi/root.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package ombi

import (
"github.com/spf13/cobra"
)

var (
RootOmbiCmd = &cobra.Command{
Use: "ombi",
Short: "To Control Ombi",
}
)

var (
_ = func() struct{} {
RootOmbiCmd.AddCommand(RequestOmbiCmd)
return struct{}{}
}()
)
16 changes: 13 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"os"

"github.com/eschizoid/flixctl/cmd/library"
"github.com/eschizoid/flixctl/cmd/nzb"
"github.com/eschizoid/flixctl/cmd/ombi"
"github.com/eschizoid/flixctl/cmd/plex"
"github.com/eschizoid/flixctl/cmd/torrent"
"github.com/spf13/cobra"
Expand All @@ -15,9 +17,10 @@ var FlixctlCmd = &cobra.Command{
Use: "flixctl",
Long: `To Control The Following flixctl Components:
* Library
* NZB Client
* Ombi
* Plex
* Tautulli
* Torrent`,
* Torrent Client`,
}

var (
Expand All @@ -41,7 +44,14 @@ var VersionCmd = &cobra.Command{

var (
_ = func() struct{} {
FlixctlCmd.AddCommand(VersionCmd, plex.RootPlexCmd, torrent.RootTorrentCmd, library.RootLibraryCmd)
FlixctlCmd.AddCommand(
VersionCmd,
library.RootLibraryCmd,
nzb.RootNzbCmd,
ombi.RootOmbiCmd,
plex.RootPlexCmd,
torrent.RootTorrentCmd,
)
return struct{}{}
}()
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/torrent/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
var StatusTorrentCmd = &cobra.Command{
Use: "status",
Short: "To Show Torrents Status",
Long: "to show the status of the torrents being downloaded",
Long: "to show the status of the torrents files being downloaded",
Run: func(cmd *cobra.Command, args []string) {
Status()
},
Expand Down
Binary file modified infrastructure/database/storm/library.db
Binary file not shown.
2 changes: 1 addition & 1 deletion infrastructure/hooks/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case $# in
download)
/home/webhook/go/bin/flixctl library download \
--job-id "${JOB_ID}" \
--target-file "/plex/movies/glacier/movie-$(date +%Y-%m-%d.%H:%M:%S).zip"
--target-file "/plex/glacier/downloads/movie-$(date +%Y-%m-%d.%H:%M:%S).zip"
;;
initiate)
/home/webhook/go/bin/flixctl library initiate \
Expand Down
16 changes: 13 additions & 3 deletions vendor/github.com/eschizoid/flixctl/cmd/root.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/eschizoid/flixctl/cmd/torrent/status.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f9d43f1

Please sign in to comment.