cleanup

j 2023-07-02 13:08:57 +05:30
parent fd7dbb95f7
commit 59b90e811e
3 changed files with 50 additions and 67 deletions

19
0x_id.md Normal file

@ -0,0 +1,19 @@
unique id for a movie
idea: rather hash title/director/year than create a random id
`'0x%s' % hashlib.sha1('\t'.join('0x', title, director, year)).hexdigest()`
because this way, it is evident what the id references (the movie "Vertigo" by Alfred Hitchcock, released in 1958)
otherwise, the id would reference something that, at one point in time, is "Vertigo", but may, later (in case we allow changes to the database, which we will), be "The Matrix"
in other words: rather derive the id from unique core metadata, and change the id if that metadata changes, than keep a constant id for something that itself is vague
title, director and year would need to be defined (original title, ', '.join('Firstname Lastname'), []beginYear-releaseYear)
title may need an additional identifier to be unique (music: 'Rio []Album' vs. 'Rio []Single'), some asian names are 'Lastname Firstname', unicode may be an issue, etc.
in the database, a movie would have a unique primary key that is different from the id. if the key is just incremental, then it should not be exposed (privacy, profiling).
question: is this a good idea?

31
MyFavoriteBugs.md Normal file

@ -0,0 +1,31 @@
another round of favorites:
- timeline marker and subtitle overlay outside of timeline (#392, #419) ... one of the few things that still look rather stupid
- empty subtitles are not empty in timeline view (#390, #403) ... related, and hopefully simple
- "series" appearing in movie title (#428, #449) ... exposes a parser bug, and the fact that we're using the imdb
- oxui enhancements: clear input button, menu text (#463, #466) ... would be nice
- info page: display alternative titles, and get rid of "Votes: 0" (#96, #329) ... missing english title makes it hard to identify certain films
- sort by id: 0xdb ids not displayed and not sorted correctly (#173, #380) ... minor annoyance, but quite easy to fix
- display resolution and aspect ratio (#325, #326) ... more of an enhancement, but would be interesting
- - - -
these are my three favorite - kind of M7/pre-Bombay - bugs:
#331: only 3 (not 4) lines of dialog in scenes view
so that sometimes the highlighted query doesn't show up. the page layout is made / allows for 4 lines
#364: mini browser: reflection missing for selected poster (regression)
this is one of the last visual flaws in an otherwise beautiful interface
#366: no timeline player for movies without subtitles
this is one of the last cases of missing (basic) functionality, and makes timelines less usable

@ -1,67 +0,0 @@
# Pandora configuration
## settings_local.py
located at /srv/pandora/pandora/local_settings.py
* your database connection, i.e.:
```
DATABASES = {
'default': {
'NAME': 'pandora',
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'USER': '',
'PASSWORD': '',
}
}
```
* celery settings
```
BROKER_PORT = 5672
BROKER_USER = "pandora"
BROKER_PASSWORD = ""
BROKER_VHOST = "/pandora"
```
* location of site.jsonc
```
SITE_CONFIG = '/srv/pandora/pandora/SITENAME.jsonc'
```
* use an external data service, i.e.:
```
DATA_SERVICE = 'https://data.0xdb.org/api/'
```
* webserver integration:
* nginx:
```
XACCELREDIRECT = True
```
* apache:
```
XSENDFILE = True
```
* serve videos from other domain. to avoid some issues with browsers or for other reasons you might want to use another domain for your videos. several variables are expanded from the prefix: {uid}, {uid42}, {id}, {part}
```
VIDEO_PREFIX = "//video{uid}.pad.ma"
SESSION_COOKIE_DOMAIN = ".pad.ma"
```
* enable debug output in http responds, otherwise a traceback will be available in Debug->View Logs... for admins
```
DEBUG=False
```
## config.jsonc
look at config.0xdb.jsonc, config.pandora.jsonc and config.padma.jsonc to get an idea of available options for now.
## poster/icon scripts
if you customize your scripts, replace poster.py, item_icon.py or list_icon.py with your version.
## logo, icon
to customize your sites logo, icon replace static/png/logo.png or static/png/icon.png
## customize views
you can customize views or javascript files.
1.e. to customize the welcome screen, copy static/js/pandora/home.js to static/js/pandora/home.SITEID.js
(SITEID as defined in config.jsonc site.id) and change it. once you are done, run manage.py update_static