adamayoung / tmdb Goto Github PK
View Code? Open in Web Editor NEWThe Movie Database Swift Package
Home Page: https://adamayoung.github.io/TMDb/documentation/tmdb
License: Apache License 2.0
The Movie Database Swift Package
Home Page: https://adamayoung.github.io/TMDb/documentation/tmdb
License: Apache License 2.0
See this TMDB API: https://developers.themoviedb.org/3/tv-episodes/get-tv-episode-images as an example
Network requests do not seem to work in the Simulator and only on an actual device. The following code was used:
return try await trendingService.tvSeries(inTimeWindow: .week, page: page).results
The call never returns.
This behavior was observed with the newest version of TMDb (bb032f0) and iOS 17.0 (both on device and in the Simulator).
Does your library support access token instead of the API Key?
Hey!
Just wanted to start by saying I appreciate this library! I was actually making all the requests I needed myself, but once I ran into this, I figured I could switch over as this seems like a much better implementation than what I had going. I just had a question regarding using the search feature.
My specific use case requires searching movies and shows simultaneously by using the searchAll(..)
method within SearchService
. This seems to give a mix of results from TMDb with a generic media type.
I'm trying to figure out how I can decipher whether the Media
that gets returned in the MediaPageableList
is a Movie
or TVShow
. Even just knowing whether the ID property in Media
is for a Movie
or TVShow
would suffice.
Is there any way to currently do this? Am I possible approaching this incorrectly or missing something? I would appreciate any help or insight on this!
P.S. I want to avoid searching movies and shows separately since the TMDb endpoint for searching all will return a list of content for what's more relevant whether that's movies, shows, or even people.
Hi, I was using the TMDb api until I read about your library, I personally think it is awesome, I do have a question though, is it possible to get just an array of the genres and if it is a way, I've hadn't notice. Thanks for your help ๐
Best Regards
Hi, is there any way to change the language of the requests ?
Hey
Nice project!
But i have a question. Such as https://developer.themoviedb.org/reference/account-get-favorites
Describe the bug
How to fetch favorite movies
Thanks.
a basic implementation might be to just encode only the basic needed data, like id and: title for a movie, name for a show
then retrieve other needed data with a manual call to the methods that talk to TMDb
thanks~
Hey there!
It looks like genres
is always nil, although the API does return genres_ids
.
If there is an sample of something similar, I might be able to send a PR.
Thanks
Steffen
Hi there,
I hope you're doing well. I wanted to let you know that while using your library, I encountered a compatibility issue. Currently, the library only supports iOS 15 and above, but my project requires a minimum iOS version of 13. To address this, I forked the repository and made the necessary change to Package.swift
to enable compatibility with iOS 13. All tests have passed successfully, and the library is working flawlessly.
I believe it would greatly benefit the community if the library could support iOS 13 and higher. I would be grateful if you could consider incorporating this change into the main repository.
Awesome library! I'd love to be able to pull from https://api.themoviedb.org/3/tv/{series_id}/aggregate_credits
with this client
e.g Game of Thrones
series ID: 1399
returns only 14 cast members:
https://gist.github.com/barfoon/387c5333e7176e88800363088e11008b
where aggregate_credits
returns much more:
https://gist.github.com/barfoon/cb9e6eb4f3df45a76a40d77ea6ab9882
Thanks!
Executing the following code
let images = try await tmdb.tvShowEpisodes.images(forEpisode: 43, inSeason: 1, inTVShow: 37854)
results in the following value for images
: TVShowEpisodeImageCollection(id: 1153014, stills: [])
. However, the correct result (as tested on https://developer.themoviedb.org/reference/tv-episode-images) should be:
{
"id": 1153014,
"stills": [
{
"aspect_ratio": 1.778,
"height": 720,
"iso_639_1": null,
"file_path": "/bYgszCXq8oBIWCmq2kUg0xx3ob6.jpg",
"vote_average": 5.312,
"vote_count": 1,
"width": 1280
},
{
"aspect_ratio": 1.333,
"height": 300,
"iso_639_1": null,
"file_path": "/hsNpOdjCr9OEDttxbzbMwvkCtcw.jpg",
"vote_average": 5.172,
"vote_count": 1,
"width": 400
},
{
"aspect_ratio": 1.778,
"height": 675,
"iso_639_1": null,
"file_path": "/13v7WFhcpNxLvefU3eicgFrjVb2.jpg",
"vote_average": 0,
"vote_count": 0,
"width": 1200
}
]
}
I used the latest release version of the package (9.0.0).
Do you support getting the streaming providers for a particular show or a movie?
I think TMDB has that api. wondering if you support it and if so how can I get to it?
Much appreciate the work you are doing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.