GithubHelp home page GithubHelp logo

get_media_files's Introduction

 ________________________________________________________
/\                                                       \
\_|  _   _      _ _                             _     _  |
  | | | | | ___| | | ___    __      _____  _ __| | __| | |
  | | |_| |/ _ \ | |/ _ \   \ \ /\ / / _ \| '__| |/ _` | |
  | |  _  |  __/ | | (_) |   \ V  V / (_) | |  | | (_| | |
  | |_| |_|\___|_|_|\___( )   \_/\_/ \___/|_|  |_|\__,_| |
  |                     |/                               |
  |   ___________________________________________________|_
   \_/_____________________________________________________/

My Most Used Languages in Public Repos

get_media_files's People

Contributors

jtara1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tonydev-rsa

get_media_files's Issues

Need to use a class to describe information of each media file returned

Right now I'm using this JSON compatible structure that'll look something like this:

    expected_data = [
        [abspath('tests/media/about.txt'),
         {'General': {'duration': None, 'format': None, 'size': (None, None)}},
         1513722595.3195267],
        [abspath('tests/media/044838940-mountain-range-and-lake-2006-a.jpg'),
         {'General': {'duration': None, 'format': 'JPEG',
                      'size': (None, None)},
          'Image': {'duration': None, 'format': 'JPEG', 'size': (800, 536)}},
         1513722595.3235266],
        [abspath('tests/media/044837513-two-women-walking-hill-1930s-v.jpg'),
         {'General': {'duration': None, 'format': 'JPEG',
                      'size': (None, None)},
          'Image': {'duration': None, 'format': 'JPEG', 'size': (1024, 772)}},
         1513722595.3275266],
        [abspath('tests/media/045844231-my-mother.wav'),
         {'Audio': {'duration': 12863, 'format': 'PCM', 'size': (None, None)},
          'General': {'duration': 12863, 'format': 'Wave',
                      'size': (None, None)}},
         1513722595.3315265]
    ]

but I'd like to organize info of each file to be described in a class that has attributes like audio and inherits from the ABC MutableMapping so I can do media.get_info()['audio'] or media.get_info().audio

Locales related problem

Hi,

There is problem due reading README.rst during installation:

 Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-v975wf9k/get-media-files/setup.py", line 91, in <module>
        readme = f.read()
      File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 312: ordinal not in range(128)

There is some solution pytorch/text#77 (comment), but I don't like it.

Can we deal with it somehow else? Maybe try to fix reading README.rst or something else.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.