Adding a label to TableViewCell, it's offset by one?...
@ccc, very cool code. You never cease to amaze me :) I have been to the site you suggest for formatting, looks great. I know why you mention it to me :) I am never using the format routines in my code. Not that I don't want to. Just my brain gets full pretty quickly. Trying to do an app for a friend at the moment for his personal dvd collection. Sounds simple, but I have to learn about responses, third party APIs for IMDB and a lot of other stuff. I have been writing bits of this and that trying to learn, but this small project, I would like to finish. The code is not going to be beautiful, it's just about time I do something that is real and useful and can be be used by someone other than myself.
ccc last edited by
@ccc, yes, his code is more sophisticated than my code. But I am using the same API as he is using. They just released a poster API also, but have to donate first. It was fine for me. My app is more vertical market. For my friend.
The starting point is a csv export from "movie collector" application on the mac. I call these my raw files. Store them in a predictable directory. I have some code that goes through and cleans the data and writes out a new data file.most importantly the export from movie collector has the IMDB Id were possible. Then I have other functions that use the omdbapi API to recover the JSON object which I save in another directory with the IMDB ID + .txt. I just do a JSON.dump to the file. But once I have that object I have the poster URL which I can then download with response and save to another directory. This code is a batch process, just about updating the different assets. Of course, before any internet call are made, checking to see if the assets are already cached or not. I have done quite a bit of work on it, as I say it's not all that pretty, but I need to try and make a complete app.
When finished for me it will be as complete as I can do, meaning that to deploy it to my friend, I will have to help him a little to get started, but after that he will be able to do his own updates etc..
I am doing all the hard work in the background as one normally does on a normal app. I have not done settings yet. But I will allow a lot of customisation of the displays. But once it's all stable, I will pass it over it to him and try to keep developing and updating him. Try being the operative word.
I am still working on it, but I think I have a reasonable and flexible model to improve it.
What it looks like, nothing special, but it will be for my thai friend once I am finished.
Oh, I should mention that I have copied code segments from the fourm here like the function pil_to_ui. And also some other functions from stackflow. I just copied then because I didn't understand them enough to rewrite them myself.there is still some skill in being able to copy code and use it with in your own context until you get your head around it.
https://www.dropbox.com/s/k5w7n1b8ry1z8zk/file 14-07-2015 21 54 09.png?dl=0
https://www.dropbox.com/s/cgmvsxp4aqtk7fa/file 14-07-2015 21 54 49.png?dl=0
https://www.dropbox.com/s/ylkssrw0kkexvma/file 14-07-2015 22 00 38.png?dl=0
JonB last edited by
FYI, you should be able directly post images from Dropbox into the forums if you append
?raw=1to the end of the url, in place of the
@JonB, thanks. So many tricks. Is it good a good practice to include them directly into the post? I had 3 pics there. Maybe people get annoyed because of the downloading time. I am not sure. I don't care one way or another.i don't have any extra charges for my internet whether I am on wifi or 3G (yes sadly on 3G here, but limited 4g roll out. ) LTE etc, we don't we think about that here :) but I am going to do a test pic from Dropbox with raw=1. Was a pic of me with make up on last New Year's Eve :) sorry couldn't help myself. Was a fun night and no one beat me up :) I like to push the boundaries
Oops, looks like I failed again
Not that it really matters, but for correctness, I mentioned a mac app call movie collector above, the app is actually called movie explorer. A great app.
Made a new view today for my app. Nothing special, but the languages are funny. Have Klingon Language:)