Skip to content

Commit

Permalink
Improve cc type detection (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
theychx committed Aug 4, 2017
1 parent c183637 commit b6e8640
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion catt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def cast(settings, video_url):
cst = CastController(settings["device"], state_check=False)
cc_name = cst.cast.device.friendly_name
cc_type = cst.cast.cast_type
stream = StreamInfo(video_url, model=cst.cast.model_name, host=cst.cast.host)
cc_info = (cst.cast.device.manufacturer, cst.cast.model_name)
stream = StreamInfo(video_url, model=cc_info, host=cst.cast.host)

if stream.is_local_file:
click.echo("Casting local file %s..." % video_url)
Expand Down
2 changes: 1 addition & 1 deletion catt/stream_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import youtube_dl


ULTRA_MODELS = ["?"]
ULTRA_MODELS = [("Xiaomi", "MIBOX3")]
ULTRA_FORMAT = "best[width <=? 3840][height <=? 2160]"
STANDARD_FORMAT = "best[width <=? 1920][height <=? 1080]"

Expand Down

0 comments on commit b6e8640

Please sign in to comment.