berlincinemas's People
berlincinemas's Issues
Make the app cope with a unknown cinema
It can happen that there's a movie playing in a cinema we don't know yet. In that case, the cinema
property of the KOMovie
object in nil
which causes loads of nastiness like crashes.
Work around this issue by a) not displaying the screenings without a cinema assigned and b) ignoring these in the filtering/sorting operations.
Merge movies (and send back only one version of each)
All the movies are being merged clientside right now,
checking and comparing the title, and then building up the extended list of kinos and showtimes.
This could be done server side.
Server side Tasks
- Clean api code
- Parse last cinemas (debug)
- Server for the API
- nginx with gzip
- mongodb running
- public domain
- Lat and Long for the cinemas
- Logger for debugging the process
Exception raised when excecuting getshowtimes
Using
Flask (0.10.1)
Flask-Script (0.6.2)
I get the following error...
mazzi@mazzibook:~/Documents/projects/berlincinemas$ python manage.py getshowtimes
* Preparing environment
Traceback (most recent call last):
File "manage.py", line 14, in <module>
manager.run()
File "/Library/Python/2.7/site-packages/flask_script/__init__.py", line 366, in run
raise e
AttributeError: 'Acud' object has no attribute 'name'
Could be something with my environment though. @milancermak are you able to reproduce?
Retrieve youtube video url and thumbnail from youtube API for each new film upon scrape
youtube api: 'http://gdata.youtube.com/feeds/api/videos?q=' + uriTitle + '&alt=json'
title there is the movie title parsed for URI
we need (from js test):
var youtube_link = response[0].link[0].href,
youtube_media = response[0].media$group,
youtube_thumb = youtube_media.media$thumbnail[0].url; //the first thumb;
parse OV / OMU on the server
And mark a field in the database.
Should only be done for 'new' movies. (assuming the ones we have already have been parsed).
- These would return a field in the response: 'original: true'.
- the words and brackets of OmU / OV should be removed from the title field.
Add explicit timezone to the date property of a movie object
I think the title says it all. Currently, the API sends i.e. "2013-10-20T00:00:00" as the value of the date field. Please add an explicit time zone. This will also future-proof the app/API. :clock2:
Trim youtube portion of the response to required fields only
related to #5 .
we only need:
var youtube_link = response[0].link[0].href,
youtube_media = response[0].media$group,
youtube_thumb = youtube_media.media$thumbnail[0].url; //the first thumb;
not the whole youtube response.
add analytics!
Parse Freiluft on the server
If the kino name has 'freiluft' in it, lets give it a freiluft: true
field and return this.
would be BAD ASS, if we had a /berlin/cinemas/freiluft endpoint that returned only those movies.
Enable and return via the API whether a kino is Freilift or no
I guess we'd need to add this manually to the DB, but should be returned along with the 'cinema' info.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.