Sets song's genre

        :param genre: genre
347679
def set_genre(self, genre):
        
        self._set_attr(TCON(encoding=3, text=str(genre)))
1292932
def set_m_vol(self, vol=None, relative=False):
        '''
        
        '''
        if vol != None:
            if relative:
                vol += self.m_vol
            self.m_vol = min(max(vol, 0), 1)
        pygame.mixer.music.set_volume(self.m_vol)
771634
public void setMusicOn(boolean music) {
		if (soundWorks) {
			this.music = music;
			if (music) {
				restartLoop();
				setMusicVolume(musicVolume);
			} else {
				pauseLoop();
			}
		}
	}
244008
def set_itunes(self):
        """"""
        self.set_itunes_author_name()
        self.set_itunes_block()
        self.set_itunes_complete()
        self.set_itunes_explicit()
        self.set_itune_image()
        self.set_itunes_keywords()
        self.set_itunes_new_feed_url()
        self.set_itunes_categories()
        self.set_items()
1215733
def addToPlaylist(playlist,tracks)
      method = 'addToPlaylist'
      type = true
      args = {:playlist=>playlist, :tracks=>Rdio::keys(tracks)}
      return_object type,method,args,true
    end
332705
def set_kind(query_proto, kind):
  """"""
  del query_proto.kind[:]
  query_proto.kind.add().name = kind
1271071
def set_client_format(self, desc):
        
        assert desc.mFormatID == AUDIO_ID_PCM
        check(_coreaudio.ExtAudioFileSetProperty(
            self._obj, PROP_CLIENT_DATA_FORMAT, ctypes.sizeof(desc),
            ctypes.byref(desc)
        ))
        self._client_fmt = desc
536030
def setStyle(self, style):
        
        self._style = style
        self.setDirty()
        self.update()
143605
def media_type_str(mediatype):
    """"""
    if mediatype == const.MEDIA_TYPE_UNKNOWN:
        return 'Unknown'
    if mediatype == const.MEDIA_TYPE_VIDEO:
        return 'Video'
    if mediatype == const.MEDIA_TYPE_MUSIC:
        return 'Music'
    if mediatype == const.MEDIA_TYPE_TV:
        return 'TV'
    return 'Unsupported'
740073
def set_sound_mode_dict(self, sound_mode_dict):
        """"""
        error_msg = ("Syntax of sound mode dictionary not valid, "
                     "use: OrderedDict([('COMMAND', ['VALUE1','VALUE2'])])")
        if isinstance(sound_mode_dict, dict):
            mode_list = list(sound_mode_dict.values())
            for sublist in mode_list:
                if isinstance(sublist, list):
                    for element in sublist:
                        if not isinstance(element, str):
                            _LOGGER.error(error_msg)
                            return False
                else:
                    _LOGGER.error(error_msg)
                    return False
        else:
            _LOGGER.error(error_msg)
            return False
        self._sound_mode_dict = sound_mode_dict
        self._sm_match_dict = self.construct_sm_match_dict()
        return True
702844
def set_album(self, album):
        
        self._set_attr(TALB(encoding=3, text=album.decode('utf-8')))
726009
def noise_set_type(n: tcod.noise.Noise, typ: int) -> None:
    
    n.algorithm = typ
1075521
public function setGenres(array $genres)
    {
        $this->genres = array();

        foreach ($genres as $genre) {
            $this->addGenre($genre);
        }

        return $this;
    }
951605
def _set_metadata(self, value):
        '''
        
        '''
        if value is None:
            setattr(self, '_PMMail__metadata', {})
        elif isinstance(value, dict):
            for k, v in value.items():
                if (not isinstance(k, str) and not isinstance(k, int)) \
                    or (not isinstance(v, str) and not isinstance(v, int)):
                    raise TypeError('Metadata keys and values can only be strings or integers')
            setattr(self, '_PMMail__metadata', value)
        else:
            raise TypeError('Metadata must be a dictionary of key-value pairs')
1193192
def set(self, value):
        

        if not isinstance(value, byte_cls):
            raise TypeError(unwrap(
                '''
                %s value must be a byte string, not %s
                ''',
                type_name(self),
                type_name(value)
            ))

        self._native = value
        self.contents = value
        self._header = None
        if self._trailer != b'':
            self._trailer = b''
779607
def set(self, value):
        

        if not isinstance(value, str_cls):
            raise TypeError(unwrap(
                '''
                %s value must be a unicode string, not %s
                ''',
                type_name(self),
                type_name(value)
            ))

        self._unicode = value
        self.contents = iri_to_uri(value)
        self._header = None
        if self._trailer != b'':
            self._trailer = b''
1249547
def new_genre(self, program, genre, relevance):
        """"""

        if self.__v_genre:
            # [Genre: SP002709210000, Sports event, 0]
            # [Genre: SP002709210000, Basketball, 1]
            # [Genre: SP002737310000, Sports event, 0]
            # [Genre: SP002737310000, Basketball, 1]
            # [Genre: SH016761790000, News, 0]
            # [Genre: SH016761790000, Talk, 1]
            # [Genre: SH016761790000, Interview, 2]
            # [Genre: SH016761790000, Politics, 3]
            print("[Genre: %s, %s, %s]" % (program, genre, relevance))