Closed CubeComming closed 3 years ago
That one will take a little more time and a lot more testing but I'll keep you updated on the progress! 😃
Thank you 👍
https://github.com/Thulur/DirectoryWatcher Also found this one which might be easier to implement as it is written in C#. I'm really looking forward to it.
Hey! I think I have something working and seems to be flawless on my personal library. Would you mind helping me test this before I merge into the main branch? Can you pull this image and test it out and see if it works for you? Just be sure to check the box for "Auto Trailer Downloads" on the setup page!
Pull this image and let me know what you think! https://hub.docker.com/repository/docker/taylorbobaylor/movie-trailer-downloader-auto-downloads
That was fast. Wonderful. Sadly there seem to be some problems...
Logs:
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
Start processing HTTP request GET https://api.themoviedb.org/3/search/movie?language=en-US&query=Back to the Future Part 3 Official Trailer #1 - Christopher Lloyd Movie HD-other&year=1990 HD-other&api_key=e438e2812f17faa299396505f2b375bb
info: System.Net.Http.HttpClient.Default.ClientHandler[100]
Sending HTTP request GET https://api.themoviedb.org/3/search/movie?language=en-US&query=Back to the Future Part 3 Official Trailer #1 - Christopher Lloyd Movie HD-other&year=1990 HD-other&api_key=e438e2812f17faa299396505f2b375bb
fail: TrailerDownloader.Services.AutoDownloadService[0]
Error in AutoDownloadService.StartAutoDownload
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
Received HTTP response headers after 123.1651ms - 401
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
End processing HTTP request after 124.4298ms - 401
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
Start processing HTTP request GET https://api.themoviedb.org/3/search/movie?language=en-US&query=Back to the Future Part 3 Official Trailer #1 - Christopher Lloyd Movie HD-other&year=1990 HD-other&api_key=e438e2812f17faa299396505f2b375bb
info: System.Net.Http.HttpClient.Default.ClientHandler[100]
Sending HTTP request GET https://api.themoviedb.org/3/search/movie?language=en-US&query=Back to the Future Part 3 Official Trailer #1 - Christopher Lloyd Movie HD-other&year=1990 HD-other&api_key=e438e2812f17faa299396505f2b375bb
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
Received HTTP response headers after 123.8792ms - 401
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
End processing HTTP request after 124.1207ms - 401
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
Logs: info: TrailerDownloader.SignalRHubs.MovieHub[0]
No movie found in directory: '/movies/.recycle'
info: System.Net.Http.HttpClient.Default.ClientHandler[101]
Received HTTP response headers after 124.8418ms - 401
info: System.Net.Http.HttpClient.Default.LogicalHandler[101]
End processing HTTP request after 125.6243ms - 401
Over and over again. Maybe just exclude all Folders starting with a "."
And it seems to have some problem getting info for some movies: like here "Man of Steel"
fail: TrailerDownloader.SignalRHubs.MovieHub[0]
Error getting movie info for Man of Steel
The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
Thank you for your hard work and I hope these are easy fixes.
Hey! I think is working as expected. The app requires a very specific folder structure and naming convention.
It seems to be stuck in a loop trying to get infos for "Back in the Future 3":
info: System.Net.Http.HttpClient.Default.LogicalHandler[100]
Start processing HTTP request GET https://api.themoviedb.org/3/search/movie?language=en-US&query=Back to the Future Part 3 Official Trailer #1 - Christopher Lloyd Movie HD-other&year=1990 HD-other&api_key=e438e2812f17faa299396505f2b375bb
info: System.Net.Http.HttpClient.Default.ClientHandler[100]
Then he also seems to be stuck on trying to find a movie for my trash can..
And it seems to have some problem getting info for some movies: like here "Man of Steel"
This honestly all seems to be working as expected. Instead of a file system watcher I'm actually using a polling method and automatically downloading all movie trailers that are missing over and over. It works for my library as all of the trailers already exist so it will only download the trailers for new movies that are put into the main Movie directory.
I hope this helps!
Alright so after deleting the trailer from Back to the Future it seems to work perfectly. Fast and correct trailers in seconds. 👍 Man of Steel somehow works now too... But I would still love it if he would ignore folders starting with a ".". And it doesn't remember the setup settings.. Would be perfect if it woud remember these after a restart of the server....
Great! 😃
Hahahaha, okay, I'll look into that as well. In the mean time I'd really appreciate it if you can keep testing it out and keep an eye on things before I merge this into the main release!
Thanks and glad you're enjoying the app ❤️
Will do :smiley: Thank you
That test image should be updated now to ignore hidden directories. Be sure to pull the latest image from docker. Let me know if that works for you!
I just updated so you can save the config locally. Be sure to pull the latest image. Put something like this when you are installing the docker container and it should save the config.
-v /path/to/local/config/:/config
It works like a charm. 👍 Beautifully done. Thank you very much for your work.
Awesome! Glad you're enjoying it 😃
So about the folder watching and automatic trailer downloading...
Did some research and found this...
https://github.com/Slaterpryce/DirectoryWatcher.js Looks pretty promising to me...
https://www.codeproject.com/Articles/699468/Monitoring-a-Folder-for-Changes-in-Files-and-Folde here a dokumentation...