HawkXP71 99 Posted December 21, 2022 Share Posted December 21, 2022 Im running into a problem with the /Collections api the URL I am sending is the following http://mediabox:8096/Collections?api_key=XXXXXXXXXXX&IsLocked=false&Name=AFI%20top%2010%20Animation&Ids=265539,265222,265112,232588,265111,265495,230435,209878,265114,265510 Which should create a new Collection name "AFI top 10 Animation" with 10 movies in the collection. However, I am getting "Unable to find the specified file." for the response. Any help would be appreciated Link to comment Share on other sites More sharing options...
Luke 37064 Posted December 21, 2022 Share Posted December 21, 2022 Hi, server log? Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted December 21, 2022 Author Share Posted December 21, 2022 The log shows zero. No errors, no log of the request at all Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted December 21, 2022 Author Share Posted December 21, 2022 Figured it out. Its a post request... 1 Link to comment Share on other sites More sharing options...
akacharos 11 Posted January 26, 2023 Share Posted January 26, 2023 @HawkXP71, can you share the complete code? I am facing the same issue. Link to comment Share on other sites More sharing options...
akacharos 11 Posted January 26, 2023 Share Posted January 26, 2023 I figured it out. I guess my problem was with the parsing of id's. If it helps anyone for future reference, here's my python snippet. movie_ids = ",".join(str(movie) for movie in movies) response = requests.post(f'https://yourservername.home/Collections?api_key={api_key}&IsLocked=false&Name={collection_name}&Movies&Ids={movie_ids}') 1 Link to comment Share on other sites More sharing options...
HawkXP71 99 Posted January 27, 2023 Author Share Posted January 27, 2023 19 hours ago, akacharos said: I figured it out. I guess my problem was with the parsing of id's. If it helps anyone for future reference, here's my python snippet. movie_ids = ",".join(str(movie) for movie in movies) response = requests.post(f'https://yourservername.home/Collections?api_key={api_key}&IsLocked=false&Name={collection_name}&Movies&Ids={movie_ids}') Sorry, been dealing with a ton of server (non-emby) issues over the last 2 days. Glad you got it working 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now