Author: mmu_man
Date: Thu Apr 19 10:08:26 2012
New Revision: 13884
URL:
http://source.netsurf-browser.org?rev=13884&view=rev
Log:
Add case for movie item types. Someday we'll support this.
Modified:
branches/mmu_man/netsurf-gopher-support-v3/content/gopher.c
Modified: branches/mmu_man/netsurf-gopher-support-v3/content/gopher.c
URL:
http://source.netsurf-browser.org/branches/mmu_man/netsurf-gopher-support...
==============================================================================
--- branches/mmu_man/netsurf-gopher-support-v3/content/gopher.c (original)
+++ branches/mmu_man/netsurf-gopher-support-v3/content/gopher.c Thu Apr 19 10:08:26 2012
@@ -733,8 +733,21 @@
type, fields[FIELD_SELECTOR], nice_text);
break;
case GOPHER_TYPE_MOVIE:
- /* TODO */
- /* FALLTHROUGH */
+ error = snprintf(buffer, buffer_length,
+ "<a href=\"gopher://%s%s%s/%c%s\">"
+ "<span class=\"video\">%s</span></a>"
+ "<video src=\"gopher://%s%s%s/%c%s\"
controls=\"controls\">"
+ "<span>[player]</span></video>"
+ "<br/>"HTML_LF,
+ fields[FIELD_HOST],
+ alt_port ? ":" : "",
+ alt_port ? fields[FIELD_PORT] : "",
+ type, fields[FIELD_SELECTOR], nice_text,
+ fields[FIELD_HOST],
+ alt_port ? ":" : "",
+ alt_port ? fields[FIELD_PORT] : "",
+ type, fields[FIELD_SELECTOR]);
+ break;
default:
/* yet to be tested items, please report when you see them! */
LOG(("warning: unknown gopher item type 0x%02x '%c'", type, type));