fix bug of unicode error
@@ -90,9 +90,6 @@ def main():
help='Do not ignore the old bangumi detail rows (3 month ago).')
sub_parser_cal = sub_parser.add_parser(ACTION_CAL, help='Print bangumi calendar.')
- # use `bgmi list`
- # sub_parser_cal.add_argument('filter', type=unicode_, metavar='filter', choices=FILTER_CHOICES,
- # help='Calendar form filter ({}).'.format(', '.join(FILTER_CHOICES)))
sub_parser_cal.add_argument('--today', action='store_true', help='Show bangumi calendar for today.')
sub_parser_cal.add_argument('--force-update', action='store_true',
help='Get the newest bangumi calendar from bangumi.moe.')
@@ -104,16 +101,9 @@ def main():
sub_parser_config.add_argument('value', nargs='?', type=unicode_, help='Config value')
sub_parser_mark = sub_parser.add_parser(ACTION_MARK, help='Mark bangumi episode.')
- sub_parser_mark.add_argument('name', help='Bangumi name')
+ sub_parser_mark.add_argument('name', type=unicode_, help='Bangumi name')
sub_parser_mark.add_argument('episode', help='Bangumi episode', type=int)
- # Deprecated
- # sub_parser_followed = sub_parser.add_parser(ACTION_FOLLOWED, help='Subscribed bangumi manager.')
- # sub_parser_followed_mutex = sub_parser_followed.add_mutually_exclusive_group(required=True)
- # sub_parser_followed_mutex.add_argument('--list', help='List subscribed bangumi.', action='store_true')
- # sub_parser_followed_mutex.add_argument('--mark', help='Specific bangumi name.', dest='name', type=unicode_)
- # sub_parser_followed.add_argument('--episode', help='Specifical bangumi episode.', metavar='episode')
-
sub_parser_download = sub_parser.add_parser(ACTION_DOWNLOAD, help='Download manager.')
sub_parser_download.add_argument('--list', help='List download queue.', action='store_true')
sub_parser_download.add_argument('--mark', help='Mark download status with a specific id.', dest='id', type=int)
