Skip to content

Commit

Permalink
Code tested and verified working. README.md error fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrabythia committed May 14, 2019
1 parent efbbede commit dbf775d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ so this cli project does not include a mdns browser, you should find out what th

### flags
**--append** (-a) whether to append the passed in media to the current playlist and not replace the current playlist (if reconnecting was successful). Defaults to `false`.
**--debug** (-d) whether to show all info logs, defaults to `false`
**--debug** (-d) whether to show all info logs, defaults to `false`.

### usage
`dart index.dart <media> --host <host> --port <port> [--append]`
Expand Down
6 changes: 3 additions & 3 deletions index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ void main(List<String> arguments) {
final parser = new ArgParser()
..addOption('host', abbr: 'h', defaultsTo: '192.168.1.214')
..addOption('port', abbr: 'p', defaultsTo: '8009')
..addFlag('append', abbr: 'r', defaultsTo: false)
..addFlag('append', abbr: 'a', defaultsTo: false)
..addFlag('debug', abbr: 'd', defaultsTo: false);

argResults = parser.parse(arguments);

if (true == argResults['debug'] ) {
Logger.root.level = Level.ALL;
Logger.root.onRecord.listen((LogRecord rec) {
print('${rec.level.name}: ${rec.time}: ${rec.message}');
print('${rec.level.name}: ${rec.message}');
});
}
else {
Expand All @@ -38,7 +38,7 @@ void main(List<String> arguments) {

void startCasting() async {

log.fine('startCasting...');
log.fine('Start Casting');

// try to load previous state saved as json in saved_cast_state.json
Map savedState;
Expand Down
4 changes: 0 additions & 4 deletions lib/casting/cast_media_status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ class CastMediaStatus {
_position = mediaStatus['currentTime'].toDouble(),
_media = mediaStatus['media'];


// TODO: implement
// CastMediaStatus.fromAppleTvMediaStatus(Map mediaStatus) {}

dynamic get sessionId => _sessionId;

String get nativeStatus => _nativeStatus;
Expand Down

0 comments on commit dbf775d

Please sign in to comment.