idiotbox

youtube scraping and interfaces: CGI, Gopher, CLI
Log | Files | Refs | README | LICENSE

commit c7b623e1478c23e3ef56a60bfe8b59bc371f0cba
parent 829f4903a17c3f57e0c5fe254c405ffa25bcc430
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 13 Jan 2019 10:00:29 +0100

update TODO, LICENSE and add css files again

Diffstat:
MLICENSE | 2+-
MTODO | 14+++++++-------
Acss/dark.css | 47+++++++++++++++++++++++++++++++++++++++++++++++
Acss/light.css | 47+++++++++++++++++++++++++++++++++++++++++++++++
Acss/pink.css | 47+++++++++++++++++++++++++++++++++++++++++++++++
Acss/templeos.css | 50++++++++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 199 insertions(+), 8 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -1,6 +1,6 @@ ISC License -Copyright (c) 2018 Hiltjo Posthuma <hiltjo@codemadness.org> +Copyright (c) 2018-2019 Hiltjo Posthuma <hiltjo@codemadness.org> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/TODO b/TODO @@ -1,7 +1,11 @@ +- in channel searching the last item is not displayed? because the pager is not + there. + - search in channel "empty" string with sort by date doesn't show all newest (compared to Atom feed). +- search in channel pagination does not work. -- gph: encode search parameter (spaces). +- gph/cli: encode search parameter (spaces). - gph: escape text like "|", TAB and other control-characters. - youtube_search: make page an int. @@ -9,14 +13,10 @@ - decodeparam, getparam etc: cast ctype functions to (unsigned char). -- order by views does not work in searching channel. -- pagination does not work in searching in channel. -- searching in channel works, but not search in user. - ? some way to show duration for playlists? -- show published date in a consistent way? ("non-human friendly": YYYY-mm-dd HH:MM:SS TZ) +? show published date in a consistent way? ("non-human friendly": YYYY-mm-dd HH:MM:SS TZ) -- separate code parsing and views for frontend. +- cleanup code parsing and views for frontend. - frontends: - CGI HTTP - CGI gopher diff --git a/css/dark.css b/css/dark.css @@ -0,0 +1,47 @@ +body { + background-color: #000; + color: #eee; + max-width: 80ex; + margin: 0 auto; + padding: 3px; +} +form { + margin: 0; +} +.nowrap { + whitespace: no-wrap; +} +.a-r { + text-align: right; +} +table.videos, +table.search, +table.search .input, +input.search { + width: 100%; +} +table.videos { + border-collapse: collapse; +} +table.videos tr td { + vertical-align: top; + padding: 0 3px; +} +table.videos tr.v:hover td { + background-color: #333; +} +td.thumb { + width: 120px; + text-align: center; +} +td.thumb img { + height: 90px; +} +a { + color: #fff; +} +hr { + height: 1px; + border: 0; + border-bottom: 1px solid #333; +} diff --git a/css/light.css b/css/light.css @@ -0,0 +1,47 @@ +body { + background-color: #fff; + color: #000; + max-width: 80ex; + margin: 0 auto; + padding: 3px; +} +form { + margin: 0; +} +.nowrap { + whitespace: no-wrap; +} +.a-r { + text-align: right; +} +table.videos, +table.search, +table.search .input, +input.search { + width: 100%; +} +table.videos { + border-collapse: collapse; +} +table.videos tr td { + vertical-align: top; + padding: 0 3px; +} +table.videos tr.v:hover td { + background-color: #eee; +} +td.thumb { + width: 120px; + text-align: center; +} +td.thumb img { + height: 90px; +} +a { + color: #000; +} +hr { + height: 1px; + border: 0; + border-bottom: 1px solid #777; +} diff --git a/css/pink.css b/css/pink.css @@ -0,0 +1,47 @@ +body { + background-color: pink; + color: #000; + max-width: 80ex; + margin: 0 auto; + padding: 3px; +} +form { + margin: 0; +} +.nowrap { + whitespace: no-wrap; +} +.a-r { + text-align: right; +} +table.videos, +table.search, +table.search .input, +input.search { + width: 100%; +} +table.videos { + border-collapse: collapse; +} +table.videos tr td { + vertical-align: top; + padding: 0 3px; +} +table.videos tr.v:hover td { + background-color: #fff; +} +td.thumb { + width: 120px; + text-align: center; +} +td.thumb img { + height: 90px; +} +a { + color: #000; +} +hr { + height: 1px; + border: 0; + border-bottom: 1px solid #777; +} diff --git a/css/templeos.css b/css/templeos.css @@ -0,0 +1,50 @@ +body { + background-color: #55ffff; + color: #aa00aa; + color: #000; + max-width: 80ex; + margin: 0 auto; + padding: 3px; +} +form { + margin: 0; +} +.nowrap { + whitespace: no-wrap; +} +.a-r { + text-align: right; +} +table.videos, +table.search, +table.search .input, +input.search { + width: 100%; +} +table.videos { + border-collapse: collapse; +} +table.videos tr td { + vertical-align: top; + padding: 0 3px; +} +td.thumb { + width: 120px; + text-align: center; +} +td.thumb img { + height: 90px; +} +a { + text-decoration: none; + color: #aa0000; + border-bottom: 1px solid #0000aa; +} +td.thumb a { + border: 0; +} +hr { + height: 1px; + border: 0; + border-bottom: 1px solid #777; +}