Skip to content

Instantly share code, notes, and snippets.

View elan's full-sized avatar
💭
Caldera...

Elan Feingold elan

💭
Caldera...
View GitHub Profile
@elan
elan / caveatPatchor.js
Created May 31, 2012 06:36 — forked from pixelmatrix/caveatPatchor.js
Add Droplr support to caveatPatchor
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
- FIX: Immediate crash on startup when logged in to myPlex without any unwatched queue items.
- FIX: Occasional crash when stopping playback.
- FIX: Strange UI behavior when running low on memory.
- FIX: TV Out is supported for older cables again.
- FIX: Playback events are no longer sent to shared servers.
- FIX: Stopping video playback is much faster, especially over remote connections.
- FIX: Image caching works again.
- UPDATED: Localizations for Arabic, Catalan, Chinese, Croatian, Danish, Dutch, Finnish, French, Hungarian, Italian, Japanese, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Swedish, Turkish and Ukrainian.
- UPDATED: Removed automatic video quality selection.
- NEW: Allowed selecting an additional video quality for cellular connections in addition to the required 64Kbps stream (requires Plex Media Server 0.9.6.1 or later).
- FIX: Immediate crash on startup when logged in to myPlex without any unwatched queue items.
- FIX: Occasional crash when stopping playback.
- FIX: Strange UI behavior when running low on memory.
- FIX: TV Out is supported for older cables again.
- FIX: Playback events are no longer sent to shared servers.
- FIX: Stopping video playback is much faster, especially over remote connections.
- FIX: Image caching works again.
- UPDATED: Localizations for Arabic, Catalan, Chinese, Croatian, Danish, Dutch, Finnish, French, Hungarian, Italian, Japanese, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Swedish, Turkish and Ukrainian.
- UPDATED: Removed automatic video quality selection.
- NEW: Allowed selecting an additional video quality for cellular connections in addition to the required 64Kbps stream (requires Plex Media Server 0.9.6.1 or later).
This latest update of Plex brings you lots of bug-fixes, Retina Display goodness, and higher quality settings for the latest iOS devices. We've also started adding some management functionality, allowing you (finally) to mark videos (un)watched and rate them, and the detail views now feature background art. So pretty!
- NEW: The video player can now be locked to the landscape orientation.
- NEW: Media can be added to or removed from your myPlex queue.
- NEW: Items in your library or your queue can be marked as watched/unwatched.
- NEW: You can change the ratings of items in your library.
- NEW: Easier access to channels & queued media from the home screen.
- NEW: Higher resolution images in the photo viewer.
- NEW: 20Mbps quality setting on iPhone 4S, iPad 2 and iPad (3rd Generation)
- UPDATED: Retina display compatibility.
#amazon
IMDB_MOVIE_PAGE = 'http://www.imdb.com/title/%s/'
IMDB_BASEURL = 'http://www.imdb.com'
def Start():
HTTP.CacheTime = CACHE_1DAY
class AmazonAgent(Agent.Movies):
name = 'Amazon'
languages = [Locale.Language.English]
require 'uri'
require 'net/http'
uri = STDIN.gets(nil).strip.delete("\n\r")
unless uri.empty?
begin
escaped_uri = URI.escape("http://api.tr.im/v1/trim_simple?url=#{uri}")
STDOUT << Net::HTTP.get_response(URI.parse(escaped_uri)).body
rescue URI::InvalidURIError
# Do nothing.
Hello, world!