<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MediaInfo for Photos and Videos in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240367#M13387</link>
    <description>&lt;P&gt;Ok, I will keep that in mind. &amp;nbsp;By the way, can I use similar codes to get metadata for videos?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2017 18:13:57 GMT</pubDate>
    <dc:creator>app5000</dc:creator>
    <dc:date>2017-09-06T18:13:57Z</dc:date>
    <item>
      <title>MediaInfo for Photos and Videos</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/239807#M13338</link>
      <description>&lt;P&gt;I am working on extracting media information from photos and videos. &amp;nbsp;So far I have used mediainfo=dbx.files_get_metadata(file_id=fileid, include_media_info=True).media_info to get MediaInfo which includes PhotoMetadata with location and time_taken values. &amp;nbsp;However, I can not find a way to get the location and time_taken values out of PhotoMetadata. &amp;nbsp;I have used photometadata=MediaInfo.PhotoMetadata, location=mediainfo.PhotoMetadata.location and time_taken=mediainfo.PhotoMetadata.time_taken but got "no attribute PhotoMetadata", "no attribute location" and "no attribute time_taken" errors at different times. &amp;nbsp;When I printed out MediaInfo it looks like (u'metadata', PhotoMetadata( dimension=xxx, location=None, time_taken=None)) but I can not . out the two values. &amp;nbsp;Can someone show me what is the correct way to write the codes so I can get the value of location and time_taken? &amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:19:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/239807#M13338</guid>
      <dc:creator>app5000</dc:creator>
      <dc:date>2019-05-29T09:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: MediaInfo for Photos and Videos</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240133#M13357</link>
      <description>&lt;P&gt;It sounds like you want to do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;file_metadata = dbx.files_get_metadata(path=file_id, include_media_info=True)

if file_metadata.media_info:
    if file_metadata.media_info.is_metadata():
        media_metadata = file_metadata.media_info.get_metadata()
        print(media_metadata.dimensions)
        print(media_metadata.location)
        print(media_metadata.time_taken)
    elif file_metadata.media_info.is_pending():
        print("Meda info is peninding.")&lt;/PRE&gt;
&lt;P&gt;Note that any of those three values may be None though, e.g., if the photo doesn't have that information.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:53:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240133#M13357</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-05T15:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: MediaInfo for Photos and Videos</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240248#M13370</link>
      <description>&lt;P&gt;Thanks, Greg. &amp;nbsp;I think this works. &amp;nbsp;Should I always set path=fileid&amp;nbsp;whenever path is asked for?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 04:57:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240248#M13370</guid>
      <dc:creator>app5000</dc:creator>
      <dc:date>2017-09-06T04:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: MediaInfo for Photos and Videos</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240311#M13378</link>
      <description>There are a few different path formats, and exactly what you should use in each case depends on what you want your app to do, what method you're using, etc. In general though, yes, you can just supply the file ID as the path value.</description>
      <pubDate>Wed, 06 Sep 2017 14:08:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240311#M13378</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-06T14:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: MediaInfo for Photos and Videos</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240367#M13387</link>
      <description>&lt;P&gt;Ok, I will keep that in mind. &amp;nbsp;By the way, can I use similar codes to get metadata for videos?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 18:13:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240367#M13387</guid>
      <dc:creator>app5000</dc:creator>
      <dc:date>2017-09-06T18:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: MediaInfo for Photos and Videos</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240369#M13388</link>
      <description>Yes, it should work the same way for videos.</description>
      <pubDate>Wed, 06 Sep 2017 18:21:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240369#M13388</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-06T18:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: MediaInfo for Photos and Videos</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240409#M13390</link>
      <description>&lt;P&gt;Thank you, you are the best.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 21:12:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/MediaInfo-for-Photos-and-Videos/m-p/240409#M13390</guid>
      <dc:creator>app5000</dc:creator>
      <dc:date>2017-09-06T21:12:15Z</dc:date>
    </item>
  </channel>
</rss>

