Giter Club home page Giter Club logo

itvdb's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

itvdb's Issues

TVDbUpdater Question

I am having difficulties understanding the TVDbUpdater mechanism.
In my Project, single shows (along with it's episodes) can be added to a database.
I display them in a tableview where i want to check for updates from time to time.

The read me says:
The first time you have a list of shows (or episodes), you should save the timestamp of that moment in your app.

If i save the timestamp every time a single show is added, wouldn't i constantly overwrite the timestamp?

Any help is welcome :)

Add specs.

It's no TDD, but better than nothing at all.

Asynchronous Call to search for show

Hello,

first of all thank you so much for this library. It saved me a lot of time. Unfortunately I came to a problem and hope you can help me out here. I am using the method

NSMutableArray *shows = [TVDbShow findByName:name];

to give the user the ability to search for a show.

Now i like to implement kind of an autocomplete ability to show all tv-shows returning while the user is typing. Because the API call can take some time the search functionality is really slow. Is there a chance to make the findByName method async ?

Currently this is what I am doing: In my UISearchResultsUpdatingDelegate I call my method to get the corresponding shows and then show them in my tableview:

#pragma mark - UISearchResultsUpdating

-(void)updateSearchResultsForSearchController:(UISearchController *)searchController {

    NSString *searchString = [self.searchController.searchBar text];

    [self updateFilteredContentForName:searchString];

    if (self.searchController.searchResultsController) {
        DEResultsViewController *vc = (DEResultsViewController *)self.searchController.searchResultsController;
        vc.searchResults = self.searchResults;
        [vc.tableView reloadData];
    }

}
- (void)updateFilteredContentForName:(NSString *)name {

    [self.searchResults removeAllObjects]; // First clear the filtered array.

    // Update the filtered array based on the search text and scope.
    if (name == nil || [name length] == 0) {
        return;
    }
    NSMutableArray *shows = [TVDbShow findByName:name];
    self.searchResults = shows;
}

Add OS X support (Pod specs)

Hi,

First of all, congratulation for your work. Great library.

Could you add support OS X in the pod specs? Maybe I'm wrong, but I believe itvdb doesn't use any exclusive iOS library.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.