This commit is contained in:
1 parent
e4990bd24e
commit
b2b0e3a917
2 files changed
+7
-2
No files matched your search
@@ -63,6 +63,11 @@ func SearchVideo(MovieName string, year int) *VideoTMDB {
|
||||
|
||||
fmt.Println(len(t.Results))
|
||||
|
||||
// if there was no match with tmdb return 0
|
||||
if len(t.Results) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
var tmdbVid tmdbVidResult
|
||||
if year != -1 {
|
||||
for _, result := range t.Results {
|
||||
|
||||
Reference in new issue
Block a user